Is `hg pull --rebase` analogous to `svn update`?

前端 未结 5 2130
情歌与酒
情歌与酒 2021-02-01 05:47

This question assumes there\'s a \"blessed\" central repository that members of a team

  1. clone from
  2. push to when they have contributions that they want othe
5条回答
  •  生来不讨喜
    2021-02-01 06:03

    The command hg pull --rebase isn't exactly analogous to svn update, but the result can be the same.

    In Subversion, if you update your working copy you get the latest changes in the repository merged in with any local changes. So the files in your repository are up to date but you might still have uncommitted changes.

    In Mercurial, hg pull --rebase, will get the latest changes from the 'central repository' (or whatever repository you're pulling from) to update your repository then shuffle along your local commits. You'll still need an hg update to make your working copy the same as your local repository.

提交回复
热议问题