Mercurial可以在不获取书签的情况下进行拉动吗? [英] Can Mercurial pull without getting bookmarks?

查看:107
本文介绍了Mercurial可以在不获取书签的情况下进行拉动吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每次从存储库中提取数据时,我不仅会获得更改集,而且还会从该存储库中获得所有书签.在某些情况下,这很烦人.有没有没有书签就可以拉的方法?

Every time I pull from a repository I get not only the changesets but also all the bookmarks from that repository. In some situations this is quite annoying. Is there a way to pull without getting bookmarks?

(我实际上正在使用TortoiseHG,但是有关普通Mercurial命令行的信息也是有用的,并且值得赞赏.)

(I'm actually using TortoiseHG, but information about plain Mercurial command line is useful and appreciated as well.)

(背景:在TortoiseHG中,有很多书签很快就会混乱.在远程存储库中保留书签以备将来参考并不重要.但是在本地,我不需要或想要它们.因此,每次从远程存储库,我必须分别删除每个书签.这会很快变旧...)

(Background: In TortoiseHG having many bookmarks gets cluttered quickly. That doesn't matter in the remote repository where the bookmarks should remain for future reference. But locally I don't need or want them. So after each pull from the remote repository I have to delete each bookmark individually. This gets old fast...)

推荐答案

我不认为push会复制书签,那么为什么不转到远程存储库并从那里推送到您的存储库呢?

I don't think that push copies bookmarks, so why not go to the remote repository and from there push into yours?

或者,.hg/bookmarks只是一个文本文件,如果将其复制,拉出然后还原原始文件,会发生什么情况?

Alternatively, .hg/bookmarks is just a text file, what happens if you copy it, pull, and then restore the original?

这篇关于Mercurial可以在不获取书签的情况下进行拉动吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆