hg up --keep

anatoly techtonik techtonik at gmail.com
Mon Aug 11 10:20:57 CDT 2014


Hi,

While writing a lot of texts about evolve, I remembered
another problematic user scenario.

$ hg up rel_2.3.0
abort: uncommitted changes
(commit or update --clean to discard changes)

The logical way that I think is:
$ hg stash
$ hg up rel_2.3.0
$ hg unstash

But that scenario is not proposed. Also, if there is a
merge conflict with uncommitted changes, I am not
warned about it.

I think that "hg up --keep" would be more useful:
$ hg up rel_2.3.0
abort: uncommitted changes
(--clean to discard changes, --keep to move changes)

$ hg up --keep rel_2.3.0
U somefile.txt
U otherfile.txt
M modified file

?

-- 
anatoly t.


More information about the Mercurial-devel mailing list