Changeset d3c9339974df…
Parent cc866f2fcafa…
by
Changes to 3 files · Browse files at d3c9339974df Showing diff from parent cc866f2fcafa Diff from another changeset...
@@ -43,11 +43,14 @@ closebranch = QRadioButton(_('Close current branch'))
branchCombo = QComboBox()
branchCombo.setEditable(True)
- for name in hglib.getlivebranch(repo):
- if name == wctx.branch():
+
+ wbu = hglib.tounicode(wctx.branch())
+ for name in repo.livebranches:
+ if name == wbu:
continue
- branchCombo.addItem(hglib.tounicode(name))
+ branchCombo.addItem(name)
branchCombo.activated.connect(self.accept)
+
grid.addWidget(nochange, 0, 0)
grid.addWidget(newbranch, 1, 0)
grid.addWidget(branchCombo, 1, 1)
|
@@ -58,8 +58,8 @@ rev = str(rev)
combo.addItem(hglib.tounicode(rev))
combo.setCurrentIndex(0)
- for name in hglib.getlivebranch(self.repo):
- combo.addItem(hglib.tounicode(name))
+ for name in self.repo.livebranches:
+ combo.addItem(name)
tags = list(self.repo.tags())
tags.sort()
|
@@ -51,12 +51,12 @@ rev = str(rev)
combo.addItem(hglib.tounicode(rev))
combo.setCurrentIndex(0)
- for name in hglib.getlivebranch(self.repo):
- combo.addItem(hglib.tounicode(name))
+
+ for name in repo.livebranches:
+ combo.addItem(name)
tags = list(self.repo.tags())
- tags.sort()
- tags.reverse()
+ tags.sort(reverse=True)
for tag in tags:
combo.addItem(hglib.tounicode(tag))
|
Loading...