Issue834

Title hg revert does not work for a file which has been renamed
Priority feature Status chatting
Superseder Nosy List mpm, padraigob
Assigned To Topics revert

Created on 2007-11-20.08:01:38 by padraigob, last changed 2008-02-12.09:58:49 by djc.

Messages
msg4461 (view) Author: padraigob Date: 2007-12-03.08:28:21
If I call hg log --follow new_file I can follow its history across copies and
renames. If I want to revert to before the rename I need to know the old name.

A --follow on hg revert to recreate the old file would be great.
msg4457 (view) Author: mpm Date: 2007-12-02.23:10:38
Hmm, not sure if that's a bug. We do the right thing with:

hg revert -r1 new_file old_file
hg revert -r1 -a

Setting to feature.
msg4343 (view) Author: padraigob Date: 2007-11-20.08:01:37
Suppose a old_file was renamed to new_file in revision 2.

The command hg revert --rev 1 new_file
deletes new_file but does not recreate old_file.
History
Date User Action Args
2008-02-12 09:58:50djcsettopic: + revert
2007-12-03 08:28:21padraigobsetmessages: + msg4461
2007-12-02 23:10:38mpmsetpriority: bug -> feature
nosy: + mpm
status: unread -> chatting
messages: + msg4457
2007-11-20 08:01:38padraigobcreate