Commits

Yuya Nishihara committed 9c847cc

repowidget: switch to outgoing context menu only if outgoing nodes exist

Without this change, if there's no outgoing changeset, outgoingMode is never
switched off.

Comments (0)

Files changed (1)

tortoisehg/hgqt/repowidget.py

     def setOutgoingNodes(self, nodes):
         self.filterbar.revsetle.setText('outgoing()')
         self.setRevisionSet([self.repo[n].rev() for n in nodes])
+        self.outgoingMode = True
 
         w = self.setInfoBar(qtlib.ConfirmInfoBar,
                             _('%d outgoing changesets') % len(nodes))
         self.syncDemand.get().pull()
     def outgoing(self):
         self.syncDemand.get().outgoing()
-        self.outgoingMode = True
     def push(self, confirm=True, **kwargs):
         """Call sync push.