Patchwork [1,of,2] exchange: use pushop.repo instead of repo

login
register
mail settings
Submitter Sean Farley
Date Oct. 15, 2015, 6:03 a.m.
Message ID <eee993036c7c1593dbef.1444889028@laptop.local>
Download mbox | patch
Permalink /patch/11096/
State Accepted
Headers show

Comments

Sean Farley - Oct. 15, 2015, 6:03 a.m.
# HG changeset patch
# User Sean Farley <sean@farley.io>
# Date 1444801988 25200
#      Tue Oct 13 22:53:08 2015 -0700
# Node ID eee993036c7c1593dbef90ae639cca5c07f10594
# Parent  a38924f7680c6b7d95e14ade999c35748c9dcafd
exchange: use pushop.repo instead of repo
Pierre-Yves David - Oct. 15, 2015, 10:37 a.m.
On 10/15/2015 07:03 AM, Sean Farley wrote:
> # HG changeset patch
> # User Sean Farley <sean@farley.io>
> # Date 1444801988 25200
> #      Tue Oct 13 22:53:08 2015 -0700
> # Node ID eee993036c7c1593dbef90ae639cca5c07f10594
> # Parent  a38924f7680c6b7d95e14ade999c35748c9dcafd
> exchange: use pushop.repo instead of repo

nice catch, this one is pushed to the clowncopter

Patch

diff --git a/mercurial/exchange.py b/mercurial/exchange.py
--- a/mercurial/exchange.py
+++ b/mercurial/exchange.py
@@ -224,11 +224,11 @@  def push(repo, remote, force=False, revs
         # synchronisation.
         msg = 'cannot lock source repository: %s\n' % err
         pushop.ui.debug(msg)
     try:
         if pushop.locallocked:
-            pushop.trmanager = transactionmanager(repo,
+            pushop.trmanager = transactionmanager(pushop.repo,
                                                   'push-response',
                                                   pushop.remote.url())
         pushop.repo.checkpush(pushop)
         lock = None
         unbundle = pushop.remote.capable('unbundle')