##// END OF EJS Templates
addremove: print relative paths when called with -I/-X (BC)...
Martin von Zweigbergk -
r23427:37788841 default
parent child Browse files
Show More
@@ -732,9 +732,9 b' def addremove(repo, pats=[], opts={}, dr'
732 if repo.ui.verbose or not m.exact(abs):
732 if repo.ui.verbose or not m.exact(abs):
733 rel = m.rel(abs)
733 rel = m.rel(abs)
734 if abs in unknownset:
734 if abs in unknownset:
735 status = _('adding %s\n') % ((pats and rel) or abs)
735 status = _('adding %s\n') % ((m.anypats() and rel) or abs)
736 else:
736 else:
737 status = _('removing %s\n') % ((pats and rel) or abs)
737 status = _('removing %s\n') % ((m.anypats() and rel) or abs)
738 repo.ui.status(status)
738 repo.ui.status(status)
739
739
740 renames = _findrenames(repo, m, added + unknown, removed + deleted,
740 renames = _findrenames(repo, m, added + unknown, removed + deleted,
@@ -24,6 +24,21 b''
24 adding foo
24 adding foo
25 $ cd ..
25 $ cd ..
26
26
27 $ hg init subdir
28 $ cd subdir
29 $ mkdir dir
30 $ cd dir
31 $ touch a.py
32 $ hg addremove 'glob:*.py'
33 adding a.py
34 $ hg forget a.py
35 $ hg addremove -I 'glob:*.py'
36 adding a.py
37 $ hg forget a.py
38 $ hg addremove
39 adding dir/a.py
40 $ cd ..
41
27 $ hg init sim
42 $ hg init sim
28 $ cd sim
43 $ cd sim
29 $ echo a > a
44 $ echo a > a
General Comments 0
You need to be logged in to leave comments. Login now