Patchwork [4,of,9] export: remove unused argument 'rev' from _exportsingle()

login
register
mail settings
Submitter Yuya Nishihara
Date April 12, 2018, 4:17 p.m.
Message ID <905b4afbfed88a336287.1523549827@mimosa>
Download mbox | patch
Permalink /patch/30809/
State Accepted
Headers show

Comments

Yuya Nishihara - April 12, 2018, 4:17 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@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()

Patch

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