【问题标题】:Hg Pull vs. Update to branch tipHg 拉取与更新到分支提示
【发布时间】:2009-11-04 21:27:05
【问题描述】:

使用 TortoiseHg Synchronize,单击“拉”会拉下 第二个最近的修订。

同步界面的底部是一个按钮,“更新到分支提示”。单击此按钮会下拉最新版本。

这里发生了什么?

【问题讨论】:

    标签: mercurial tortoisehg


    【解决方案1】:

    命令行 hg 告诉我们:

    $ hg 帮助拉动

    ...

    Pull changes from a remote repository to a local one.
    

    ...

    -R is specified). By default, this does not update the copy of the
    project in the working directory.
    

    对比

    $hg 帮忙

    ...

    更新仓库的工作目录到指定的 修订版,如果未指定,则为当前分支的尖端。

    【讨论】:

    • 要在 @ptman 的 cmets 上构建,您可以使用 -u 标志在单个操作中拉取和更新,因此 $ hg pull -u [source]
    【解决方案2】:

    如果您是 mercurial 新手或想知道您没有错过任何选项,这可能会有所帮助:

    http://blog.hanxiaogang.com/hg-guide/

    【讨论】:

    • Cerberrussian,这不是答案,应该是评论。至少,请尝试将该博客的一些内容放在您的“答案”中,这样​​ T.Stone 就不必访问外部链接来获得他的答案。
    猜你喜欢
    • 1970-01-01
    • 2019-06-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-28
    • 1970-01-01
    • 2014-05-02
    • 1970-01-01
    相关资源
    最近更新 更多