简体   繁体   English

汞拉不撤退的变化

[英]hg pull do not retreive changes

I've been using hg for a few years with a BitBucket Repo . 我已经在BitBucket Repo中使用hg几年了。 I use it to archive my development but also to synchronise between different computers (mainly my desktop and my main laptop). 我使用它来存档我的开发,还可以在不同的计算机(主要是台式机和笔记本电脑)之间进行同步。 So far, no troubles. 到目前为止,没有任何麻烦。

But today, when I did an hg pull to get the latest version from the server, I got the response " no changes found ", when I can see the changes made yesterday on the server, and still no replicated on my files, locally. 但是今天,当我进行一次hg pull来从服务器获取最新版本时,我得到了“ 没有发现更改 ”的响应,当时我可以看到昨天在服务器上所做的更改,并且仍然没有本地复制到我的文件中。

I eventually got the latest version using hg graft -r the_latest_version , which solve my problem for now ... however this was easy to see as it was for a shell script with only a few files. 我最终使用hg graft -r the_latest_version获得了最新版本,该版本hg graft -r the_latest_version解决了我的问题……但是,由于只有几个文件的Shell脚本很容易看到这一点。

With projects with plenty of files, I might not spot the problem early enough. 对于具有大量文件的项目,我可能无法尽早发现问题。 Any ideas on what went wrong and how to correct it ? 关于出了什么问题以及如何纠正的任何想法?

Cheers. 干杯。

OK, the answer is: I just forgot I needed to perform hg update after hg pull ! 好的,答案是:我只是忘了我需要在hg pull之后执行hg update

Thanks to @planetmaker for pointing in the right direction ! 感谢@planetmaker指出正确的方向!

Sorry for the disturbance! 对不起,打扰了!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM