Commits

Yuya Nishihara committed 16d2682

sync: correct logic whether to read defaultpush setting (fixes #2022)

In d82b54ce816b, "not rev and not branch" was rewritten to "not pushall and
rev is not None and branch is not None". It should be "not (rev is not None)",
i.e., "rev is None".

Comments (0)

Files changed (1)

tortoisehg/hgqt/sync.py

             self.pushCompleted.emit()
         self.finishfunc = finished
 
-        if not pushall and rev is not None and branch is not None:
+        if not pushall and rev is None and branch is None:
             # Read the tortoisehg.defaultpush setting to determine what to push by default
             defaultpush = self.repo.ui.config('tortoisehg', 'defaultpush', 'all')
             if defaultpush == 'all':