Mercurial - 确定远程仓库是否需要合并

Mar*_*eon 4 merge mercurial

我们有两个存储库:myappmyapp-1.1.我们将myapp-1.1合并到myapp中.

要查看1.1中是否存在需要合并的更改,请执行以下操作:

cd c:\myapp     (local clone)
hg fetch        (fetch from remote myapp repo)
hg in ssh://hg/myapp-1.1    (see what needs to be merged in from remote 1.1 repo)
Run Code Online (Sandbox Code Playgroud)

这有效 - 但有更好的方法吗?有没有办法在不需要本地myapp克隆的情况下执行此操作?

ang*_*son 5

Mercurial对远程存储库不能做太多事情,除了推送或拉动它们的一些变体.

因此,您想要让Mercurial做的任何事情都必须使用本地克隆.

所以不,没有办法让Mercurial检查是否需要合并两个远程存储库.