Issue #1189 resolved

Sort repositories by name

bels
created an issue

Add an option to the workbench repository registry to sort the repositories by name.

Comments (8)

  1. Anonymous

    You can drag and drop to sort the order yourself, perhaps you already knew this? (I didn't until yesterday)

  2. Anonymous
    diff -r a573fc6448b5 tortoisehg/hgqt/repotreeitem.py
    --- a/tortoisehg/hgqt/repotreeitem.py	Sun Jan 15 20:16:49 2012 +0900
    +++ b/tortoisehg/hgqt/repotreeitem.py	Wed Jan 18 17:33:11 2012 +0800
    @@ -271,7 +271,7 @@
                     if repo is None:
                         repo = hg.repository(ui.ui(), self._root)
                     wctx = repo['.']
    -                for subpath in wctx.substate:
    +                for subpath in sorted(wctx.substate):
                         sri = None
                         abssubpath = repo.wjoin(subpath)
                         subtype = wctx.substate[subpath][2]
    
  3. Boon Hian Tek

    I posted the above diff a while ago, I have used it at my workplace for a while now. Hope we can get this in the official code one day, so I don't need to keep "patching" our local copy.

  4. Log in to comment