D3173: cmdutil: drop unused rev arguments from _exportsingle()

indygreg (Gregory Szorc) phabricator at mercurial-scm.org
Fri Apr 6 22:10:45 UTC 2018


indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  No clue when we stopped using it.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D3173

AFFECTED FILES
  mercurial/cmdutil.py

CHANGE DETAILS

diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py
--- a/mercurial/cmdutil.py
+++ b/mercurial/cmdutil.py
@@ -1526,7 +1526,7 @@
 # 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 @@
         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()
 



To: indygreg, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list