HG:克隆没有任何变更集
我的计算机上的 ~/Server
文件夹中有一个 hg 存储库。当我从该项目的根目录运行 hg Summary
时,我得到以下信息:
parent: 98:408483c17026 tip
final proposal page set up
branch: GS_Clients
commit: 6 deleted (clean)
update: (current)
所以我想在我的 dropbox 文件夹中制作该项目的备份副本,所以我运行 :
hg clone <current_source> ~/Dropbox/Repositories/<new_source>
但当我运行 hg 摘要
在新目录中,表明它处于修订版 0:
parent: 0:b03c2c025c61
inital commit
branch: default
commit: (clean)
update: (current)
我已经尝试了各种推送、拉取和更新方式,但我无法使新的存储库保持最新。
我如何制作一个最新的克隆,和/或如何使这个存储库保持最新。
I have a hg respository located in a ~/Server
folder on my computer. when I run hg summary
from the root of that project, I get the following:
parent: 98:408483c17026 tip
final proposal page set up
branch: GS_Clients
commit: 6 deleted (clean)
update: (current)
So I wanted to make a backup copy of this project in my dropbox folder, so I ran :
hg clone <current_source> ~/Dropbox/Repositories/<new_source>
yet when I run hg summary
in the new directory, is states that it is at revision 0:
parent: 0:b03c2c025c61
inital commit
branch: default
commit: (clean)
update: (current)
I've tried all manners of pushing,pulling and updating, but I can't get the new repo up to date.
How can I make a clone that is up to date, and/or how can I get this repo up to date.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的第一个摘要位于
GS_Clients
分支上,而第二个摘要由于是新克隆,因此位于default
分支上。尝试hg update GS_Clients
。update: (current)
行仅表示您位于当前分支的开头。我认为只有 rev 0 位于
default
分支上,所有其他提交均位于GS_Clients
或其他命名分支上。像log
、glog
这样的命令和像 TortoiseHg 这样的 UI 会让这一点变得非常明显,而summary
则不然。Your first summary is on branch
GS_Clients
, while the second one, because it is a fresh clone, is on thedefault
branch. Tryhg update GS_Clients
.The
update: (current)
line only means you're at a head of the current branch.I figure only rev 0 is on the
default
branch, and all your other commits are onGS_Clients
or other named branches. Commands likelog
,glog
, and UIs like TortoiseHg would have made that pretty obvious, wheresummary
does not.