graphmod: rename graph-topological config to graph-group-branches
authorAugie Fackler <raf@durin42.com>
Mon, 08 Dec 2014 15:20:28 -0500
changeset 23569 3ecbcffdeb0c
parent 23568 740ae54573a3
child 23570 3f86fe9bcef0
graphmod: rename graph-topological config to graph-group-branches The latter suggests what the change is slightly better.
mercurial/graphmod.py
tests/test-glog-topological.t
--- a/mercurial/graphmod.py	Thu Sep 04 19:28:17 2014 +0200
+++ b/mercurial/graphmod.py	Mon Dec 08 15:20:28 2014 -0500
@@ -227,10 +227,10 @@
     lowestrev = revs.min()
     gpcache = {}
 
-    if repo.ui.configbool('experimental', 'graph-topological', False):
+    if repo.ui.configbool('experimental', 'graph-group-branches', False):
         firstbranch = ()
-        firstbranchrevset = repo.ui.config('experimental',
-                                           'graph-topological.firstbranch', '')
+        firstbranchrevset = repo.ui.config(
+            'experimental', 'graph-group-branches.firstbranch', '')
         if firstbranchrevset:
             firstbranch = repo.revs(firstbranchrevset)
         parentrevs = repo.changelog.parentrevs
--- a/tests/test-glog-topological.t	Thu Sep 04 19:28:17 2014 +0200
+++ b/tests/test-glog-topological.t	Mon Dec 08 15:20:28 2014 -0500
@@ -40,7 +40,7 @@
 
 (display all nodes)
 
-  $ hg --config experimental.graph-topological=1 log -G
+  $ hg --config experimental.graph-group-branches=1 log -G
   o  8
   |
   o  3
@@ -62,7 +62,7 @@
 
 (revset skipping nodes)
 
-  $ hg --config experimental.graph-topological=1 log -G --rev 'not (2+6)'
+  $ hg --config experimental.graph-group-branches=1 log -G --rev 'not (2+6)'
   o  8
   |
   o  3
@@ -80,7 +80,7 @@
 
 (begin) from the other branch
 
-  $ hg --config experimental.graph-topological=1 --config experimental.graph-topological.firstbranch=5 log -G
+  $ hg --config experimental.graph-group-branches=1 --config experimental.graph-group-branches.firstbranch=5 log -G
   o  7
   |
   o  6