What to do befor "hg update"
Matt Mackall
mpm at selenic.com
Wed Jul 8 17:24:21 UTC 2009
On Wed, 2009-07-08 at 19:06 +0200, Robert Bauck Hamar wrote:
> *Roland Schmitz:
> >Hello everyone,
> >
> >i'm new to mercurial, but i think, this could be my tool for version
> >management ;-}
> >As far as i'm today, i found that i can ask mercurial what it will do. Before
> >doing a hg pull i'll run hg incomming, ...
> >hg push/hg outgoing
> >hg commit/hg status
> >But i havent found which command will tell me what hg update will do.
>
> $ hg parents
> ... get revision id, say 42
> $ hg diff -r 42 -r tip
> ... patch hg update would apply.
..which is the same as:
hg diff -r . -r tip
hg diff -r .:tip
> Note, that if you have uncommited changes in your working directory, the
> diff won't show them.
hg diff -r tip
Replace 'tip' with your branch name if you're using named branches.
--
http://selenic.com : development and support for Mercurial and Linux
More information about the Mercurial
mailing list