Patchwork [3,of,3] strip: remove a redundant setting of hookargs

login
register
mail settings
Submitter via Mercurial-devel
Date June 16, 2017, 9:26 p.m.
Message ID <5cec89d7fd6c6fe5d6cf.1497648399@martinvonz.svl.corp.google.com>
Download mbox | patch
Permalink /patch/21437/
State Accepted
Headers show

Comments

via Mercurial-devel - June 16, 2017, 9:26 p.m.
# HG changeset patch
# User Martin von Zweigbergk <martinvonz@google.com>
# Date 1497633224 25200
#      Fri Jun 16 10:13:44 2017 -0700
# Node ID 5cec89d7fd6c6fe5d6cf80c35fcb0c0935901a1a
# Parent  ec1998992dd7989922a2cea054e2fd5c548879a0
strip: remove a redundant setting of hookargs

bundle2.applybundle() will set both 'source' and 'url'.

Patch

diff --git a/mercurial/repair.py b/mercurial/repair.py
--- a/mercurial/repair.py
+++ b/mercurial/repair.py
@@ -204,8 +204,6 @@ 
                 repo.ui.pushbuffer()
             if isinstance(gen, bundle2.unbundle20):
                 with repo.transaction('strip') as tr:
-                    tr.hookargs = {'source': 'strip',
-                                   'url': 'bundle:' + vfs.join(tmpbundlefile)}
                     bundle2.applybundle(repo, gen, tr, source='strip',
                                         url='bundle:' + vfs.join(tmpbundlefile))
             else: