# HG changeset patch # User Pierre-Yves David # Date 1511650022 18000 # Node ID 0b85da2e8e2a26dcf9eac8371535d9f2f68ee1eb # Parent 6f0ae6943351cb9870530a640348f4b44e9248aa# Parent a342c454ccf3c69732eae122ccdda19e0fecc4b7 branching: merge stable into default diff -r 6f0ae6943351 -r 0b85da2e8e2a .hgignore --- a/.hgignore Fri Nov 17 00:51:31 2017 +0100 +++ b/.hgignore Sat Nov 25 17:47:02 2017 -0500 @@ -6,7 +6,7 @@ \.swp$ \.orig$ \.rej$ -\.err$ +^tests/.*\.err$ ^tests/easy_run.sh$ ^build/ ^dist/ diff -r 6f0ae6943351 -r 0b85da2e8e2a CHANGELOG --- a/CHANGELOG Fri Nov 17 00:51:31 2017 +0100 +++ b/CHANGELOG Sat Nov 25 17:47:02 2017 -0500 @@ -20,7 +20,7 @@ * fix new-heads check when pushing new topic with --publish. -7.0.0 -- 2017-10-23 +7.0.0 -- 2017-11-02 ------------------- * drop compatibility with Mercurial 3.8, 3.9 and 4.0, diff -r 6f0ae6943351 -r 0b85da2e8e2a hgext3rd/topic/flow.py --- a/hgext3rd/topic/flow.py Fri Nov 17 00:51:31 2017 +0100 +++ b/hgext3rd/topic/flow.py Sat Nov 25 17:47:02 2017 -0500 @@ -41,11 +41,10 @@ newargs['opargs']['publish'] = True return orig(repo, remote, *args, **newargs) -def extendpushoperation(orig, *args, **kwargs): +def extendpushoperation(orig, self, *args, **kwargs): publish = kwargs.pop('publish', False) - op = orig(*args, **kwargs) - op.publish = publish - return op + orig(self, *args, **kwargs) + self.publish = publish def wrapphasediscovery(orig, pushop): orig(pushop) @@ -64,6 +63,7 @@ entry = extensions.wrapcommand(commands.table, 'push', wrappush) entry[1].append(('', 'publish', False, _('push the changeset as public'))) - extensions.wrapfunction(exchange, 'pushoperation', extendpushoperation) + extensions.wrapfunction(exchange.pushoperation, '__init__', + extendpushoperation) extensions.wrapfunction(exchange, '_pushdiscoveryphase', wrapphasediscovery) exchange.pushdiscoverymapping['phase'] = exchange._pushdiscoveryphase