当我取消搁置时,它使用 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/