diff hgext/evolve.py @ 751:a5474648a9d2

gdown/gup: add next/previous alias Up and down refer to the customary order in log output rather than concepts; as such, it may be confusing to the user. I for one found them suprising -- they just didn't fit with my mental model. Previous and next, however, imply a clear parent/child relationship. We attroduce the new name as aliases for now.
author Dan Villiom Podlaski Christiansen <dan@cabo.dk>
date Fri, 15 Nov 2013 21:33:54 -0500
parents ddbea2fdee5e
children bfdfdf731f8a
line wrap: on
line diff
--- a/hgext/evolve.py	Tue Oct 22 11:51:01 2013 +0200
+++ b/hgext/evolve.py	Fri Nov 15 21:33:54 2013 -0500
@@ -1238,10 +1238,10 @@
 
 shorttemplate = '[{rev}] {desc|firstline}\n'
 
-@command('^gdown',
+@command('^gdown|previous',
          [],
          '')
-def cmdgdown(ui, repo):
+def cmdprevious(ui, repo):
     """update to parent and display summary lines"""
     wkctx = repo[None]
     wparents = wkctx.parents()
@@ -1261,10 +1261,10 @@
         ui.warn(_('multiple parents, explicitly update to one\n'))
         return 1
 
-@command('^gup',
+@command('^gup|next',
          [],
          '')
-def cmdup(ui, repo):
+def cmdnext(ui, repo):
     """update to child and display summary lines"""
     wkctx = repo[None]
     wparents = wkctx.parents()