by
Changes to 3 files · Browse files at c19873efd8d5 Showing diff from parent 0a84cfa83687 dc336d56a9ab Diff from another changeset...
@@ -334,6 +334,15 @@ if '--version' not in sys.argv:
raise
+ # Allow use of environment variables to specify the location of Mercurial
+ import modulefinder
+ path = os.getenv('MERCURIAL_PATH')
+ if path:
+ modulefinder.AddPackagePath('mercurial', path)
+ path = os.getenv('HGEXT_PATH')
+ if path:
+ modulefinder.AddPackagePath('hgext', path)
+
if 'py2exe' in sys.argv:
import hgext
hgextdir = os.path.dirname(hgext.__file__)
|
@@ -51,6 +51,7 @@ return user, host, port, folder, passwd, scheme
class SyncWidget(QWidget, qtlib.TaskWidget):
+ syncStarted = pyqtSignal() # incoming/outgoing/pull/push started
outgoingNodes = pyqtSignal(object)
incomingBundle = pyqtSignal(QString)
showMessage = pyqtSignal(unicode)
@@ -752,6 +753,7 @@ ##
def inclicked(self):
+ self.syncStarted.emit()
url = self.currentUrl(True)
urlu = hglib.tounicode(url)
self.showMessage.emit(_('Getting incoming changesets from %s...') % urlu)
@@ -787,6 +789,7 @@ self.run(cmdline, ('force', 'branch', 'rev', 'subrepos'))
def pullclicked(self):
+ self.syncStarted.emit()
url = self.currentUrl(True)
urlu = hglib.tounicode(url)
def finished(ret, output):
@@ -825,6 +828,7 @@ self.run(cmdline, ('force', 'branch', 'rev', 'bookmark'))
def outclicked(self):
+ self.syncStarted.emit()
url = self.currentUrl(True)
urlu = hglib.tounicode(url)
self.showMessage.emit(_('Finding outgoing changesets to %s...') % urlu)
@@ -898,6 +902,7 @@ self.run(['--repository', self.repo.root, 'p4pending', '--verbose'], ())
def pushclicked(self, confirm, rev=None, branch=None):
+ self.syncStarted.emit()
url = self.currentUrl(True)
urlu = hglib.tounicode(url)
if (not hg.islocal(self.currentUrl(False)) and confirm
|
Loading...