##// END OF EJS Templates
log: slowpath: only walk specified revision range during preparation...
Nicolas Dumazet -
r11631:dbb98d8f default
parent child Browse files
Show More
@@ -1106,15 +1106,7 b' def walkchangerevs(repo, match, opts, pr'
1106 'filenames'))
1106 'filenames'))
1107
1107
1108 # The slow path checks files modified in every changeset.
1108 # The slow path checks files modified in every changeset.
1109 if opts.get('removed'):
1109 for i in sorted(revs):
1110 # --removed wants to yield the changes where the file
1111 # was removed, this means that we have to explore all
1112 # changesets, effectively ignoring the revisions that
1113 # had been passed as arguments
1114 revlist = xrange(nullrev, len(repo) - 1)
1115 else:
1116 revlist = sorted(revs)
1117 for i in revlist:
1118 ctx = change(i)
1110 ctx = change(i)
1119 matches = filter(match, ctx.files())
1111 matches = filter(match, ctx.files())
1120 if matches:
1112 if matches:
@@ -62,6 +62,11 b" hg log -v --template '{rev} {file_copies"
62 echo '% log -p d'
62 echo '% log -p d'
63 hg log -pv d
63 hg log -pv d
64
64
65 echo '% log --removed file'
66 hg log --removed -v a
67 echo '% log --removed revrange file'
68 hg log --removed -v -r0:2 a
69
65 # log --follow tests
70 # log --follow tests
66 hg init ../follow
71 hg init ../follow
67 cd ../follow
72 cd ../follow
@@ -196,6 +196,32 b' diff -r 41dd4284081e -r 7c6c671bb7cc d'
196 @@ -0,0 +1,1 @@
196 @@ -0,0 +1,1 @@
197 +a
197 +a
198
198
199 % log --removed file
200 changeset: 3:7c6c671bb7cc
201 user: test
202 date: Thu Jan 01 00:00:04 1970 +0000
203 files: a b d
204 description:
205 d
206
207
208 changeset: 0:8580ff50825a
209 user: test
210 date: Thu Jan 01 00:00:01 1970 +0000
211 files: a
212 description:
213 a
214
215
216 % log --removed revrange file
217 changeset: 0:8580ff50825a
218 user: test
219 date: Thu Jan 01 00:00:01 1970 +0000
220 files: a
221 description:
222 a
223
224
199 adding base
225 adding base
200 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
226 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
201 adding b1
227 adding b1
General Comments 0
You need to be logged in to leave comments. Login now