version-control - 有没有办法在 merge 错误后取回 mercurial 架子?

标签 version-control mercurial unshelve

当我取消搁置时,它使用 mercurial 的 merge 功能,但是如果我以错误方式完成 merge ,我看不到任何方法可以恢复原始搁置的补丁并重做事情。除了搜索备份驱动器之外,还有什么方法可以做到这一点? (要么撤消取消搁置操作并将搁置放回原处,要么查看补丁文件中的内容)

最佳答案

我找到了——通过在 .hg 中环顾四周目录。只需找到目录 .hg/shelve-backup/ .原始补丁写在那里。

我现在看到这是在 hg help unshelve 中提到的虽然我之前错过了它(它没有说目录的名称)

After a successful unshelve, the shelved changes are stored in a backup
directory. Only the N most recent backups are kept. N defaults to 10 but
can be overridden using the "shelve.maxbackups" configuration option.

关于version-control - 有没有办法在 merge 错误后取回 mercurial 架子?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49457264/

相关文章:

version-control - Perforce "Translation of file content failed"错误

version-control - 我可以将 `.hg` 与工作目录分开吗?

mercurial - 为什么 "hg push"比 .hg 大这么多?

netbeans - 我如何从版本号知道一个版本是最稳定的版本?

git - 樱桃选择 merge

regex - 让 Mercurial 忽略除某些子目录之外的所有内容

mercurial - 如何修复被 hg unshelve 破坏的存储库?

TFS Power tools Migrate 并没有真正迁移

git - 在 Git 中将一个更改 merge 到多个分支