Show More
@@ -40,7 +40,7 b' def filerevs(repo, path, start, stop):' | |||
|
40 | 40 | filerev = len(repo.file(path)) - 1 |
|
41 | 41 | while filerev >= 0: |
|
42 | 42 | fctx = repo.filectx(path, fileid=filerev) |
|
43 |
parents = [f. |
|
|
43 | parents = [f.linkrev() for f in fctx.parents() if f.path() == path] | |
|
44 | 44 | parents.sort() |
|
45 | 45 | if fctx.rev() <= start: |
|
46 | 46 | yield (fctx, parents) |
@@ -151,3 +151,16 b' hg glog -l1 repo' | |||
|
151 | 151 | hg glog -l1 repo/0 |
|
152 | 152 | hg glog -l1 repo/missing |
|
153 | 153 | |
|
154 | echo % file log with revs != cset revs | |
|
155 | hg init flog | |
|
156 | cd flog | |
|
157 | echo one >one | |
|
158 | hg add one | |
|
159 | hg commit -mone | |
|
160 | echo two >two | |
|
161 | hg add two | |
|
162 | hg commit -mtwo | |
|
163 | echo more >two | |
|
164 | hg commit -mmore | |
|
165 | hg glog two | |
|
166 |
@@ -369,3 +369,15 b' o changeset: 0:7aa22e58e8c1' | |||
|
369 | 369 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
370 | 370 | summary: (0) root |
|
371 | 371 | |
|
372 | % file log with revs != cset revs | |
|
373 | @ changeset: 2:12c28321755b | |
|
374 | | tag: tip | |
|
375 | | user: test | |
|
376 | | date: Thu Jan 01 00:00:00 1970 +0000 | |
|
377 | | summary: more | |
|
378 | | | |
|
379 | o changeset: 1:5ac72c0599bf | |
|
380 | user: test | |
|
381 | date: Thu Jan 01 00:00:00 1970 +0000 | |
|
382 | summary: two | |
|
383 |
General Comments 0
You need to be logged in to leave comments.
Login now