Mercurial > hg
comparison tests/test-log.t @ 21876:584bbfd1b50d stable
log: make --patch --follow work inside a subdirectory
Previously, the 'patch' code for hg log --patch --follow would try to resolve
patterns relative to the repository root rather than the current working
directory. Fix that by using match.files instead of pats, as done elsewhere
nearby.
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Sat, 12 Jul 2014 02:23:17 -0700 |
parents | 58c32a9c8e7b |
children | dbbae63865a6 |
comparison
equal
deleted
inserted
replaced
21868:3420346174b1 | 21876:584bbfd1b50d |
---|---|
187 | 187 |
188 log -pf dir/b | 188 log -pf dir/b |
189 | 189 |
190 $ hg up -q 3 | 190 $ hg up -q 3 |
191 $ hg log -pf dir/b | 191 $ hg log -pf dir/b |
192 changeset: 2:f8954cd4dc1f | |
193 user: test | |
194 date: Thu Jan 01 00:00:03 1970 +0000 | |
195 summary: c | |
196 | |
197 diff -r d89b0a12d229 -r f8954cd4dc1f dir/b | |
198 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 | |
199 +++ b/dir/b Thu Jan 01 00:00:03 1970 +0000 | |
200 @@ -0,0 +1,1 @@ | |
201 +a | |
202 | |
203 changeset: 1:d89b0a12d229 | |
204 user: test | |
205 date: Thu Jan 01 00:00:02 1970 +0000 | |
206 summary: b | |
207 | |
208 diff -r 9161b9aeaf16 -r d89b0a12d229 b | |
209 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 | |
210 +++ b/b Thu Jan 01 00:00:02 1970 +0000 | |
211 @@ -0,0 +1,1 @@ | |
212 +a | |
213 | |
214 changeset: 0:9161b9aeaf16 | |
215 user: test | |
216 date: Thu Jan 01 00:00:01 1970 +0000 | |
217 summary: a | |
218 | |
219 diff -r 000000000000 -r 9161b9aeaf16 a | |
220 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 | |
221 +++ b/a Thu Jan 01 00:00:01 1970 +0000 | |
222 @@ -0,0 +1,1 @@ | |
223 +a | |
224 | |
225 | |
226 log -pf b inside dir | |
227 | |
228 $ hg --cwd=dir log -pf b | |
192 changeset: 2:f8954cd4dc1f | 229 changeset: 2:f8954cd4dc1f |
193 user: test | 230 user: test |
194 date: Thu Jan 01 00:00:03 1970 +0000 | 231 date: Thu Jan 01 00:00:03 1970 +0000 |
195 summary: c | 232 summary: c |
196 | 233 |