mirror of
https://github.com/git/git.git
synced 2024-11-01 14:57:52 +01:00
remote-hg: improve node traversing
We won't be able to count the unmarked commits, but we are not going to be able to do that anyway when we switch to SHA-1 ids. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
52036431ff
commit
e936a5d484
1 changed files with 7 additions and 3 deletions
|
@ -389,12 +389,16 @@ def export_ref(repo, name, kind, head):
|
|||
revs = xrange(tip, head.rev() + 1)
|
||||
count = 0
|
||||
|
||||
revs = [rev for rev in revs if not marks.is_marked(rev)]
|
||||
|
||||
for rev in revs:
|
||||
|
||||
c = repo[rev]
|
||||
(manifest, user, (time, tz), files, desc, extra) = repo.changelog.read(c.node())
|
||||
node = c.node()
|
||||
|
||||
if marks.is_marked(c.hex()):
|
||||
count += 1
|
||||
continue
|
||||
|
||||
(manifest, user, (time, tz), files, desc, extra) = repo.changelog.read(node)
|
||||
rev_branch = extra['branch']
|
||||
|
||||
author = "%s %d %s" % (fixup_user(user), time, gittz(tz))
|
||||
|
|
Loading…
Reference in a new issue