##// END OF EJS Templates
fix a bug in hg export --switch-parent
Benoit Boissinot -
r1589:fce52928 default
parent child Browse files
Show More
@@ -1119,11 +1119,11 b' def diff(ui, repo, *pats, **opts):'
1119 def doexport(ui, repo, changeset, seqno, total, revwidth, opts):
1119 def doexport(ui, repo, changeset, seqno, total, revwidth, opts):
1120 node = repo.lookup(changeset)
1120 node = repo.lookup(changeset)
1121 parents = [p for p in repo.changelog.parents(node) if p != nullid]
1121 parents = [p for p in repo.changelog.parents(node) if p != nullid]
1122 if opts['switch_parent']:
1123 parents.reverse()
1122 prev = (parents and parents[0]) or nullid
1124 prev = (parents and parents[0]) or nullid
1123 change = repo.changelog.read(node)
1125 change = repo.changelog.read(node)
1124
1126
1125 if opts['switch_parent']:
1126 parents.reverse()
1127 fp = make_file(repo, repo.changelog, opts['output'],
1127 fp = make_file(repo, repo.changelog, opts['output'],
1128 node=node, total=total, seqno=seqno,
1128 node=node, total=total, seqno=seqno,
1129 revwidth=revwidth)
1129 revwidth=revwidth)
General Comments 0
You need to be logged in to leave comments. Login now