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

login
register
mail settings
Submitter phabricator
Date April 6, 2018, 10:10 p.m.
Message ID <differential-rev-PHID-DREV-vsasi2w2mejgh2vgrisb-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/30470/
State Superseded
Headers show

Comments

phabricator - April 6, 2018, 10:10 p.m.
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




To: indygreg, #hg-reviewers
Cc: mercurial-devel
phabricator - April 13, 2018, 1:40 a.m.
indygreg abandoned this revision.
indygreg added a subscriber: yuja.
indygreg added a comment.


  @yuja made a much better version of this series, albeit without CBOR.

REPOSITORY
  rHG Mercurial

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

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

Patch

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()