hgext3rd/topic/flow.py
branchstable
changeset 3226 5dfe4e5cf9e4
parent 3204 a342c454ccf3
child 3235 8a772f0c54d9
equal deleted inserted replaced
3210:df8d535216af 3226:5dfe4e5cf9e4
    46     orig(self, *args, **kwargs)
    46     orig(self, *args, **kwargs)
    47     self.publish = publish
    47     self.publish = publish
    48 
    48 
    49 def wrapphasediscovery(orig, pushop):
    49 def wrapphasediscovery(orig, pushop):
    50     orig(pushop)
    50     orig(pushop)
    51     if pushop.publish:
    51     if getattr(pushop, 'publish', False):
    52         if not util.safehasattr(pushop, 'remotephases'):
    52         if not util.safehasattr(pushop, 'remotephases'):
    53             msg = _('--publish flag only supported from Mercurial 4.4 and higher')
    53             msg = _('--publish flag only supported from Mercurial 4.4 and higher')
    54             raise error.Abort(msg)
    54             raise error.Abort(msg)
    55         if not pushop.remotephases.publishing:
    55         if not pushop.remotephases.publishing:
    56             unfi = pushop.repo.unfiltered()
    56             unfi = pushop.repo.unfiltered()