by
Changes to 3 files · Browse files at fa4af62c8e59 Showing diff from parent bfb34f3aaa50 4862de17b8dd Diff from another changeset...
@@ -21,7 +21,6 @@ self.setconfig('ui', 'interactive', 'off')
self.setconfig('progress', 'disable', 'True')
self.output, self.error = [], []
- os.environ['TERM'] = 'dumb'
def write(self, *args, **opts):
label = opts.get('label', '')
|
@@ -14,7 +14,7 @@
from tortoisehg.util import hglib
from tortoisehg.hgqt.i18n import _
-from tortoisehg.hgqt import qtlib, cmdui, visdiff, thgrepo
+from tortoisehg.hgqt import qtlib, cmdui, csinfo, visdiff, thgrepo
MARGINS = (8, 0, 0, 0)
@@ -40,6 +40,40 @@ hbox.addWidget(tb)
hbox.addWidget(self.stlabel)
+ def revisionInfoLayout(repo):
+ """
+ Return a layout containg the revision information (local and other)
+ """
+ hbox = QHBoxLayout()
+ hbox.setSpacing(0)
+ hbox.setContentsMargins(*MARGINS)
+
+ vbox = QVBoxLayout()
+ vbox.setContentsMargins(*MARGINS)
+ hbox.addLayout(vbox)
+ localrevtitle = qtlib.LabeledSeparator(_('Local revision information'))
+ localrevinfo = csinfo.create(repo)
+ localrevinfo.update(repo[None].p1())
+ vbox.addWidget(localrevtitle)
+ vbox.addWidget(localrevinfo)
+ vbox.addStretch()
+
+ vbox = QVBoxLayout()
+ vbox.setContentsMargins(*MARGINS)
+ hbox.addLayout(vbox)
+ otherrevtitle = qtlib.LabeledSeparator(_('Other revision information'))
+ otherrevinfo = csinfo.create(repo)
+ otherrevinfo.update(repo[None].p2())
+
+ vbox.addWidget(otherrevtitle)
+ vbox.addWidget(otherrevinfo)
+ vbox.addStretch()
+
+ return hbox
+
+ if len(self.repo[None].parents()) > 1:
+ self.layout().addLayout(revisionInfoLayout(self.repo))
+
unres = qtlib.LabeledSeparator(_('Unresolved conflicts'))
self.layout().addWidget(unres)
|
@@ -101,7 +101,6 @@
self.setconfig('ui', 'interactive', 'on')
self.setconfig('progress', 'disable', 'True')
- os.environ['TERM'] = 'dumb'
def write(self, *args, **opts):
if self._buffers:
|
Loading...