mirror of
https://github.com/frej/fast-export.git
synced 2026-02-08 14:16:46 +01:00
Skip earlier
Now that we have ctx easily available, skip early. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
This commit is contained in:
@@ -297,10 +297,11 @@ def export_commit(ui,repo,revision,old_marks,max,count,authors,
|
||||
|
||||
ctx=repo[revision]
|
||||
|
||||
(_,user,(time,timezone),files,desc,branch,extra)=get_changeset(ui,repo,revision,authors,encoding)
|
||||
if ctx.hidden():
|
||||
return count
|
||||
|
||||
(_,user,(time,timezone),files,desc,branch,extra)=get_changeset(ui,repo,revision,authors,encoding)
|
||||
|
||||
branch=get_branchname(branch)
|
||||
|
||||
parents = [p for p in repo.changelog.parentrevs(revision) if p >= 0]
|
||||
@@ -377,10 +378,11 @@ def export_commit(ui,repo,revision,old_marks,max,count,authors,
|
||||
def export_note(ui,repo,revision,count,authors,encoding,is_first):
|
||||
ctx = repo[revision]
|
||||
|
||||
(_,user,(time,timezone),_,_,_,_)=get_changeset(ui,repo,revision,authors,encoding)
|
||||
if ctx.hidden():
|
||||
return count
|
||||
|
||||
(_,user,(time,timezone),_,_,_,_)=get_changeset(ui,repo,revision,authors,encoding)
|
||||
|
||||
wr(b'commit refs/notes/hg')
|
||||
wr(b'committer %s %d %s' % (user,time,timezone))
|
||||
wr(b'data 0')
|
||||
|
||||
Reference in New Issue
Block a user