Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • thg thg
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 834
    • Issues 834
    • List
    • Boards
    • Service Desk
    • Milestones
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • mercurial
  • TortoiseHg
  • thgthg
  • Issues
  • #103

Closed
Open
Created Feb 01, 2011 by Bitbucket Importer@bitbucket_importerOwner

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.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking