[issue269] hg mv should handle newly added files

John Levon mercurial-bugs at selenic.com
Tue May 23 17:40:17 CDT 2006


New submission from John Levon <levon at movementarian.org>:

hg mv of a file I've hg added but not committed will fail:

$ hg mv xs_linux.c xenstored_linux.c
xs_linux.c: not copying - file has been marked for add
abort: no files to copy

I have to do:

$ hg forget xs_linux.c
(the forget command is deprecated; use revert instead)
$ mv xs_linux.c xenstored_linux.c
$ hg add xenstored_linux.c

It should do it for me.

----------
messages: 1410
nosy: movement
priority: bug
status: unread
title: hg mv should handle newly added files

____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue269>
____________________________________________________



More information about the Mercurial mailing list