[PATCH 1 of 2 evolve-ext] evolve: change the order of the troublecategories

Laurent Charignon lcharignon at fb.com
Fri Aug 7 09:28:43 UTC 2015


# HG changeset patch
# User Laurent Charignon <lcharignon at fb.com>
# Date 1438936230 25200
#      Fri Aug 07 01:30:30 2015 -0700
# Node ID de3c2a7d18f02eacf45dc7948c8fe4898a040d66
# Parent  8e6de39b724d854cb92d2de3a0472ffb03627034
evolve: change the order of the troublecategories

This has no influence whatsoever in the functionning of the evolve function.
It is used to make the next patch of the series cleaner (evolve --list).
When we display the categories of troubled, it seemed more natural to me to
start by displaying instability, then divergence and bumping.

diff --git a/hgext/evolve.py b/hgext/evolve.py
--- a/hgext/evolve.py
+++ b/hgext/evolve.py
@@ -1552,7 +1552,7 @@ def evolve(ui, repo, **opts):
     dryrunopt = opts['dry_run']
     confirmopt = opts['confirm']
     revopt = opts['rev']
-    troublecategories = ['bumped', 'divergent', 'unstable']
+    troublecategories = ['unstable', 'divergent', 'bumped']
     specifiedcategories = [t for t in troublecategories if opts[t]]
     targetcat = 'unstable'
     if 1 < len(specifiedcategories):


More information about the Mercurial-devel mailing list