Newbie - how to detect a push?
Christian Boos
cboos at neuf.fr
Wed Mar 25 10:07:39 CDT 2009
Frank Millman wrote:
> ... How am I
> supposed to detect that there are pending updates in the original
> repository?
>
`hg id` or `hg parents` will usually show "tip" if you're working on top
of the last committed changeset.
If it's not showing this, either it's because you explicitly switched to
a different changeset or branch using hg update and you have not yet
committed from there, or it's because new changesets have been pushed in.
Alternatively, if you insist on using `hg status`, you can specify
`--rev tip` for a similar effect. The only problem is that you can't
tell the difference between local uncommitted changes and differences
between the current working copy parent revision and the specified one
(tip here). So only use this when you don't have any local changes.
-- Christian
More information about the Mercurial
mailing list