Mercurial - compare local and remote repositories?

时光怂恿深爱的人放手 提交于 2020-01-01 12:18:05

问题


In Git, there is the command

git remote show <remote>

When properly configured, this will show you the status of the remote compared to your local repository, including whether there are pending changes in either. I can't find a similar command in Mercurial. Am I missing something or does it just not exist?


回答1:


Perhaps hg summary --remote?




回答2:


To compare local and remote repositories follow these steps:

  1. go to local repo folder (use cd path_to_local_repo)
  2. run "hg outgoing -p path_to_remote_repo" (without quotes)

See GenerateDiffBetweenRepositories



来源:https://stackoverflow.com/questions/6877748/mercurial-compare-local-and-remote-repositories

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!