# HG changeset patch # User Yuya Nishihara <y...@tcha.org> # Date 1523537237 -32400 # Thu Apr 12 21:47:17 2018 +0900 # Node ID 905b4afbfed88a336287cc79e7f3258fd05380cd # Parent 18bead1ff6b9b9d0df3e6b0a7aea2fd358ce1244 export: remove unused argument 'rev' from _exportsingle()
diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py --- a/mercurial/cmdutil.py +++ b/mercurial/cmdutil.py @@ -1526,7 +1526,7 @@ extraexport = [] # it is given two arguments (sequencenumber, changectx) extraexportmap = {} -def _exportsingle(repo, ctx, match, switch_parent, rev, seqno, write, diffopts): +def _exportsingle(repo, ctx, match, switch_parent, seqno, write, diffopts): node = scmutil.binnode(ctx) parents = [p.node() for p in ctx.parents() if p] branch = ctx.branch() @@ -1611,7 +1611,7 @@ def export(repo, revs, fntemplate='hg-%h if not dest.startswith('<'): repo.ui.note("%s\n" % dest) _exportsingle( - repo, ctx, match, switch_parent, rev, seqno, write, opts) + repo, ctx, match, switch_parent, seqno, write, opts) if fo is not None: fo.close() _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel