##// END OF EJS Templates
addremove: add labels for messages about added and removed files...
Boris Feld -
r39123:ad88726d default
parent child Browse files
Show More
@@ -1005,9 +1005,11 b' def addremove(repo, matcher, prefix, opt'
1005 if repo.ui.verbose or not m.exact(abs):
1005 if repo.ui.verbose or not m.exact(abs):
1006 if abs in unknownset:
1006 if abs in unknownset:
1007 status = _('adding %s\n') % m.uipath(abs)
1007 status = _('adding %s\n') % m.uipath(abs)
1008 label = 'addremove.added'
1008 else:
1009 else:
1009 status = _('removing %s\n') % m.uipath(abs)
1010 status = _('removing %s\n') % m.uipath(abs)
1010 repo.ui.status(status)
1011 label = 'addremove.removed'
1012 repo.ui.status(status, label=label)
1011
1013
1012 renames = _findrenames(repo, m, added + unknown, removed + deleted,
1014 renames = _findrenames(repo, m, added + unknown, removed + deleted,
1013 similarity)
1015 similarity)
@@ -69,6 +69,12 b''
69 removing c
69 removing c
70 adding d
70 adding d
71 recording removal of a as rename to b (100% similar)
71 recording removal of a as rename to b (100% similar)
72 $ hg addremove -ns 50 --color debug
73 [addremove.removed ui.status|removing a]
74 [addremove.added ui.status|adding b]
75 [addremove.removed ui.status|removing c]
76 [addremove.added ui.status|adding d]
77 [ ui.status|recording removal of a as rename to b (100% similar)]
72 $ hg addremove -s 50
78 $ hg addremove -s 50
73 removing a
79 removing a
74 adding b
80 adding b
General Comments 0
You need to be logged in to leave comments. Login now