Mercurial > hg > mercurial-source
comparison tests/test-addremove.t @ 23427:3778884197f0
addremove: print relative paths when called with -I/-X (BC)
For "hg addremove 'glob:*.py'", we print any paths added or removed as
relative to the current directory, but when "hg addremove -I
'glob:*.py'" is used, we use the absolute path (relative from the repo
root). It seems like they should be the same, so change it so we use
relative paths in both cases. Continue to use absolute paths when no
patterns are given.
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Mon, 01 Dec 2014 21:48:32 -0800 |
parents | 9f4778027bc2 |
children | 83bbedc16b3f |
comparison
equal
deleted
inserted
replaced
23426:19ebd2f88fc7 | 23427:3778884197f0 |
---|---|
20 committed changeset 1:e65414bf35c5 | 20 committed changeset 1:e65414bf35c5 |
21 $ cd .. | 21 $ cd .. |
22 $ hg forget foo | 22 $ hg forget foo |
23 $ hg -v addremove | 23 $ hg -v addremove |
24 adding foo | 24 adding foo |
25 $ cd .. | |
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 | |
25 $ cd .. | 40 $ cd .. |
26 | 41 |
27 $ hg init sim | 42 $ hg init sim |
28 $ cd sim | 43 $ cd sim |
29 $ echo a > a | 44 $ echo a > a |