equal
deleted
inserted
replaced
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() |