Show More
@@ -1048,7 +1048,8 b' def _matchfiles(repo, subset, x):' | |||
|
1048 | 1048 | # i18n: "_matchfiles" is a keyword |
|
1049 | 1049 | raise error.ParseError(_('_matchfiles expected at most one ' |
|
1050 | 1050 | 'revision')) |
|
1051 | rev = value | |
|
1051 | if value != '': # empty means working directory; leave rev as None | |
|
1052 | rev = value | |
|
1052 | 1053 | elif prefix == 'd:': |
|
1053 | 1054 | if default is not None: |
|
1054 | 1055 | # i18n: "_matchfiles" is a keyword |
@@ -72,14 +72,17 b' Test log' | |||
|
72 | 72 | content1_content2_content3-tracked | 1 + |
|
73 | 73 | 3 files changed, 3 insertions(+), 0 deletions(-) |
|
74 | 74 | |
|
75 | BROKEN: rev 0 affects content1_missing_content*-tracked | |
|
76 | ||
|
77 | 75 | $ hg log -T '{rev}\n' --stat 'set:added()' |
|
78 | 76 | 1 |
|
79 | 77 | content1_missing_content1-tracked | 1 - |
|
80 | 78 | content1_missing_content3-tracked | 1 - |
|
81 | 79 | 2 files changed, 0 insertions(+), 2 deletions(-) |
|
82 | 80 | |
|
81 | 0 | |
|
82 | content1_missing_content1-tracked | 1 + | |
|
83 | content1_missing_content3-tracked | 1 + | |
|
84 | 2 files changed, 2 insertions(+), 0 deletions(-) | |
|
85 | ||
|
83 | 86 | $ hg log -T '{rev}\n' --stat 'set:removed()' |
|
84 | 87 | 1 |
|
85 | 88 | content1_content2_content1-untracked | 2 +- |
@@ -100,22 +103,37 b' BROKEN: rev 0 affects content1_missing_c' | |||
|
100 | 103 | content1_content2_content3-untracked | 1 + |
|
101 | 104 | content1_content2_missing-untracked | 1 + |
|
102 | 105 | 7 files changed, 7 insertions(+), 0 deletions(-) |
|
103 | ||
|
104 | BROKEN: rev 0 affects content1_content1_missing-tracked, | |
|
105 | content1_content2_missing-tracked and content1_missing_missing-tracked. | |
|
106 | rev 1 affects content1_content2_missing-tracked, | |
|
107 | content1_missing_missing-tracked and missing_content2_missing-tracked | |
|
108 | ||
|
106 | ||
|
109 | 107 | $ hg log -T '{rev}\n' --stat 'set:deleted()' |
|
110 | ||
|
111 | BROKEN: rev 0 and 1 affect content1_missing_content*-untracked | |
|
112 | ||
|
108 | 1 | |
|
109 | content1_content2_missing-tracked | 2 +- | |
|
110 | content1_missing_missing-tracked | 1 - | |
|
111 | missing_content2_missing-tracked | 1 + | |
|
112 | 3 files changed, 2 insertions(+), 2 deletions(-) | |
|
113 | ||
|
114 | 0 | |
|
115 | content1_content1_missing-tracked | 1 + | |
|
116 | content1_content2_missing-tracked | 1 + | |
|
117 | content1_missing_missing-tracked | 1 + | |
|
118 | 3 files changed, 3 insertions(+), 0 deletions(-) | |
|
119 | ||
|
113 | 120 | $ hg log -T '{rev}\n' --stat 'set:unknown()' |
|
114 | ||
|
115 | BROKEN: rev 1 affects content1_content2_content2-tracked and | |
|
116 | missing_content2_content2-tracked | |
|
117 | ||
|
121 | 1 | |
|
122 | content1_missing_content1-untracked | 1 - | |
|
123 | content1_missing_content3-untracked | 1 - | |
|
124 | 2 files changed, 0 insertions(+), 2 deletions(-) | |
|
125 | ||
|
126 | 0 | |
|
127 | content1_missing_content1-untracked | 1 + | |
|
128 | content1_missing_content3-untracked | 1 + | |
|
129 | 2 files changed, 2 insertions(+), 0 deletions(-) | |
|
130 | ||
|
118 | 131 | $ hg log -T '{rev}\n' --stat 'set:clean()' |
|
132 | 1 | |
|
133 | content1_content2_content2-tracked | 2 +- | |
|
134 | missing_content2_content2-tracked | 1 + | |
|
135 | 2 files changed, 2 insertions(+), 1 deletions(-) | |
|
136 | ||
|
119 | 137 | 0 |
|
120 | 138 | content1_content1_content1-tracked | 1 + |
|
121 | 139 | content1_content2_content2-tracked | 1 + |
General Comments 0
You need to be logged in to leave comments.
Login now