[issue2450] hg up --check discards unversioned files

David G bugs at mercurial.selenic.com
Thu Oct 21 19:18:12 UTC 2010


New submission from David G <d.grellscheid+hg at gmail.com>:

If I read the help page for 'hg up' correctly, the '--check' option should
abort when uncommitted changes are encountered. With hg 1.6.4 on both OS X
and Linux, however, '--check' overwrites unversioned files with a versioned
copy if they happen to have the same name.

With an unversioned file, I would expect the following:
'hg up': abort
'hg up --check': abort
'hg up --clean': overwrite

Actually, what happens is:
'hg up': abort
'hg up --check': overwrite (!)
'hg up --clean': overwrite


Please see the attached shell script for a minimal test case.

----------
files: hg_up_check.sh
messages: 14137
nosy: dgrell
priority: bug
status: unread
title: hg up --check discards unversioned files

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2450>
____________________________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hg_up_check.sh
Type: application/x-sh
Size: 694 bytes
Desc: not available
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20101021/860b5605/attachment.sh>


More information about the Mercurial-devel mailing list