Comments
Patch
@@ -192,10 +192,13 @@
try:
lfdirstate = lfutil.openlfdirstate(ui, repo)
for f in sorted(remove):
- if isaddremove:
- ui.status(_('removing %s\n') % f)
- elif ui.verbose or not m.exact(f):
- ui.status(_('removing %s\n') % m.rel(f))
+ if ui.verbose or not m.exact(f):
+ # addremove in core gets fancy with the name, remove doesn't
+ if isaddremove:
+ name = m.uipath(f)
+ else:
+ name = m.rel(f)
+ ui.status(_('removing %s\n') % name)
if not opts.get('dry_run'):
if not after:
@@ -259,7 +259,7 @@
$ mv subrepo/large.txt subrepo/renamed-large.txt
$ hg addremove -S --dry-run
adding large.dat as a largefile
- removing large.txt
+ removing subrepo/large.txt (glob)
adding subrepo/normal.txt (glob)
adding subrepo/renamed-large.txt (glob)
adding large.dat
@@ -270,7 +270,7 @@
? subrepo/renamed-large.txt
$ hg addremove --dry-run subrepo
- removing large.txt
+ removing subrepo/large.txt (glob)
adding subrepo/normal.txt (glob)
adding subrepo/renamed-large.txt (glob)
$ hg status -S
@@ -281,7 +281,7 @@
$ cd ..
$ hg -R statusmatch addremove --dry-run statusmatch/subrepo
- removing large.txt
+ removing statusmatch/subrepo/large.txt (glob)
adding statusmatch/subrepo/normal.txt (glob)
adding statusmatch/subrepo/renamed-large.txt (glob)
$ hg -R statusmatch status -S
@@ -292,7 +292,7 @@
$ hg -R statusmatch addremove --dry-run -S
adding statusmatch/large.dat as a largefile (glob)
- removing large.txt
+ removing subrepo/large.txt (glob)
adding subrepo/normal.txt (glob)
adding subrepo/renamed-large.txt (glob)
adding large.dat
@@ -366,10 +366,8 @@
$ hg status -S
$ rm subrepo/large.txt
-
-NB: The path in the message is wrong
$ hg addremove -S
- removing large.txt
+ removing subrepo/large.txt (glob)
$ hg st -S
R subrepo/large.txt