[issue954] revert ignores --no-backup for renames

Stefan Groschupf mercurial-bugs at selenic.com
Wed Jan 30 01:16:11 UTC 2008


New submission from Stefan Groschupf <sg at 101tec.com>:

$echo "bla" >> TODO.txt
$hg add test.txt
$hg commit
$hg rename test.txt test.txt2
ll
drwxr-xr-x  16 joa23  joa23    544 Jan 29 17:12 .
drwxr-xr-x  24 joa23  joa23    816 Jan 29 11:19 ..
drwxr-xr-x  10 joa23  joa23    340 Jan 29 17:12 .hg
-rw-r--r--   1 joa23  joa23      4 Jan 29 17:12 test.txt2
$hg revert --no-backup test.txt2 
$ll
drwxr-xr-x  17 joa23  joa23    578 Jan 29 17:14 .
drwxr-xr-x  24 joa23  joa23    816 Jan 29 11:19 ..
-rw-r--r--   1 joa23  joa23      4 Jan 29 17:14 test.txt
-rw-r--r--   1 joa23  joa23      4 Jan 29 17:12 test.txt2


I would expect that with the option --no-backup there would be no text.txt2 
since in the other cases there is also no test.txt.orig

----------
messages: 5027
nosy: joa23
priority: bug
status: unread
title: revert ignores --no-backup for renames

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




More information about the Mercurial-devel mailing list