Sort branches in Update dialog
Created originally on Bitbucket by Dario Ahdoot
I haven't tested this in THG yet, but in Tortoise 1.8, the list of branches in the update dialog are not sorted. Would be nice to have them sorted for those who have a large number of branches.
Not much needs to change. I think all that is needed is to modify lines in the UpdateDialog.init method:
Change: {{{ #!python
for name in hglib.getlivebranch(self.repo): combo.addItem(hglib.tounicode(name)) }}}
To: {{{ #!python
branches = list(hglib.getlivebranch(self.repo)) branches.sort() for name in branches: combo.addItem(hglib.tounicode(name)) }}}
I haven't tested it as I'm not set up to build Tortoise.