How to spot a clean/non-clean Mercurial update
Mads Kiilerich
mads at kiilerich.com
Wed Dec 12 23:54:44 UTC 2012
Peter Toft wrote, On 12/12/2012 02:55 PM:
>
> Hi again
>
> I need your help to predict whether a "hg pull -u" will give a clean
> update or not.
>
A hack like
hg diff -r.:tip | patch --dry-run --forward
might give a useful approximation in most cases.
A better answer is this: You should never make an update with
uncommitted changes in the working directory. If you follow that advice
then you know that the working directory is clean and the update will be
smooth.
/Mads
More information about the Mercurial
mailing list