##// END OF EJS Templates
graphlog: fix regression with filelogs introduced by 7bc62ebe7693
Peter Arrenbrecht -
r7383:b501c7f3 default
parent child Browse files
Show More
@@ -40,7 +40,7 b' def filerevs(repo, path, start, stop):'
40 filerev = len(repo.file(path)) - 1
40 filerev = len(repo.file(path)) - 1
41 while filerev >= 0:
41 while filerev >= 0:
42 fctx = repo.filectx(path, fileid=filerev)
42 fctx = repo.filectx(path, fileid=filerev)
43 parents = [f.filerev() for f in fctx.parents() if f.path() == path]
43 parents = [f.linkrev() for f in fctx.parents() if f.path() == path]
44 parents.sort()
44 parents.sort()
45 if fctx.rev() <= start:
45 if fctx.rev() <= start:
46 yield (fctx, parents)
46 yield (fctx, parents)
@@ -151,3 +151,16 b' hg glog -l1 repo'
151 hg glog -l1 repo/0
151 hg glog -l1 repo/0
152 hg glog -l1 repo/missing
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 date: Thu Jan 01 00:00:00 1970 +0000
369 date: Thu Jan 01 00:00:00 1970 +0000
370 summary: (0) root
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