mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 23:38:50 +03:00
fix a bug in hg export --switch-parent
This commit is contained in:
parent
f18f0c7a93
commit
7a029eadd4
@ -1119,11 +1119,11 @@ def diff(ui, repo, *pats, **opts):
|
||||
def doexport(ui, repo, changeset, seqno, total, revwidth, opts):
|
||||
node = repo.lookup(changeset)
|
||||
parents = [p for p in repo.changelog.parents(node) if p != nullid]
|
||||
if opts['switch_parent']:
|
||||
parents.reverse()
|
||||
prev = (parents and parents[0]) or nullid
|
||||
change = repo.changelog.read(node)
|
||||
|
||||
if opts['switch_parent']:
|
||||
parents.reverse()
|
||||
fp = make_file(repo, repo.changelog, opts['output'],
|
||||
node=node, total=total, seqno=seqno,
|
||||
revwidth=revwidth)
|
||||
|
Loading…
Reference in New Issue
Block a user