1051 if procStarted: |
1051 if procStarted: |
1052 finished = process.waitForFinished(30000) |
1052 finished = process.waitForFinished(30000) |
1053 if finished and process.exitCode() == 0: |
1053 if finished and process.exitCode() == 0: |
1054 output = str(process.readAllStandardOutput(), |
1054 output = str(process.readAllStandardOutput(), |
1055 Preferences.getSystem("IOEncoding"), 'replace') |
1055 Preferences.getSystem("IOEncoding"), 'replace') |
1056 url = output.splitlines()[0].strip() |
1056 if output: |
|
1057 url = output.splitlines()[0].strip() |
|
1058 else: |
|
1059 url = "" |
1057 |
1060 |
1058 return QApplication.translate('mercurial', |
1061 return QApplication.translate('mercurial', |
1059 """<h3>Repository information</h3>\n""" |
1062 """<h3>Repository information</h3>\n""" |
1060 """<p><table>\n""" |
1063 """<p><table>\n""" |
1061 """<tr><td><b>Mercurial V.</b></td><td>{0}</td></tr>\n""" |
1064 """<tr><td><b>Mercurial V.</b></td><td>{0}</td></tr>\n""" |
1513 repodir = os.path.dirname(repodir) |
1516 repodir = os.path.dirname(repodir) |
1514 if repodir == os.sep: |
1517 if repodir == os.sep: |
1515 return |
1518 return |
1516 |
1519 |
1517 cfgFile = os.path.join(repodir, self.adminDir, "hgrc") |
1520 cfgFile = os.path.join(repodir, self.adminDir, "hgrc") |
|
1521 if not os.path.exists(cfgFile): |
|
1522 try: |
|
1523 cfg = open(cfgFile, "w") |
|
1524 cfg.close() |
|
1525 except IOError: |
|
1526 pass |
1518 self.editor = MiniEditor(cfgFile, "Properties") |
1527 self.editor = MiniEditor(cfgFile, "Properties") |
1519 self.editor.show() |
1528 self.editor.show() |
1520 |
1529 |
1521 def hgVerify(self, name): |
1530 def hgVerify(self, name): |
1522 """ |
1531 """ |