HG 更改的文件在更新到修订版后不显示
使用 Mercurial、TortoiseHG、Win XP。
我有一个包含许多文件的工作目录。承诺并准备好。
我的同步软件[配置不正确]将一些非常旧的文件[在我使用 HG 之前]复制到我的工作目录中,覆盖了很多个小时的工作。
我想回到最后提交的版本,所以我做了“更新到修订版”->当前分支提示。
这肯定是错误的事情,因为现在它显示所有这些旧文件都是当前文件,并且没有我所有工作的迹象。
“更新修订版”不会显示在历史记录或任何地方。
我可以做些什么来取回我的文件吗?
另外,每当我尝试与 bitbucket 同步时,它都会挂起,阻止互联网 [浏览器和 IM 停止工作],并且不会更新 [因此我没有任何其他副本]。有人知道如何修复吗?
谢谢(绝望!)
下面是根据要求绘制的图表。它没有向我显示任何有关提示(?)的更新:
(来源:jewishmusic.net)
Using Mercurial, TortoiseHG, Win XP.
I had a working directory with a number of files. Committed and ready.
My syncing software [incorrectly configured] copied some very old files [from before I was using HG] into my working directory, overwriting many many hours of work.
I wanted to go back to the last committed version, so I did "update to revision" -> current branch tip.
That must have been the wrong thing, as now it shows all of those old files as being the current files, and no sign anywhere of all my work.
That "update to revision" doesn't show in the history or anywhere.
Anything I can do to get my files back?
Also, anytime I try to sync with bitbucket, it hangs, blocks the internet [browser and IM cease to work], and doesn't update [hence I do not have any other copy]. Anyone with an idea how to fix?
Thanks (desperate!)
Below is the graph, as requested. It doesn't show me anything about the update to tip (?):
(source: jewishmusic.net)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您的所有更改均已提交,您所要做的就是:
1. 恢复本地更改(hg revert -a)
2. 更新到您想要的修订版(例如,hg 更新提示)
如果您不恢复本地更改,HG 将在更新工作目录时尝试保留它们。
对于你的第二个问题我没有任何解决办法。我在 WinXP 上使用了 TortoiseHG,效果很好。尝试升级到较新的版本
If all your changes were committed all you have to do is:
1. revert local changes (hg revert -a)
2. update to the revision you want (e.g., hg update tip)
If you don't revert local changes HG will try to keep them when updating the working directory.
I don't have any solution to your second problem. I used TortoiseHG on WinXP and it worked well. Try to upgrade to a newer version