Need help cloning? Learn how to
clone a repository.
is a free Git and Mercurial client for Windows.
is a free Git and Mercurial client for Mac.
Add an option to the workbench repository registry to sort the repositories by name.
You can drag and drop to sort the order yourself, perhaps you already knew this? (I didn't until yesterday)
It's pretty hard to order 30+ repos manually,
+1 for this feature
I managed actually 100+ repository and it's a mess to manage order by drag'n dropping each entries
This also needs to sort subrepositories as they cannot be reordered manually.
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]
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.
reporegistry: add cmenu sort actions for groups (closes #1189)
Use a submenu for the sort actions to reduce clutter and to
help prevent accidental sorting, since the initial order is not
recoverable in general.