Commits

Dan Villiom Podlaski Christiansen committed 2b211d8 Draft

deprecate gup/gdown aliases for next/previous

Comments (0)

Files changed (1)

 
 shorttemplate = '[{rev}] {desc|firstline}\n'
 
-@command('^previous|gdown',
+@command('gdown',
+         [],
+         '')
+def cmdgdown(ui, repo):
+    '''alias for :hg:`previous`  (DEPRECATED)'''
+    ui.warn(_("warning: 'gdown' is deprecated in favor of 'previous'\n"))
+
+    return cmdprevious(ui, repo)
+
+@command('^previous',
          [],
          '')
 def cmdprevious(ui, repo):
         ui.warn(_('multiple parents, explicitly update to one\n'))
         return 1
 
-@command('^next|gup',
+@command('gup',
          [],
          '')
+def cmdup(ui, repo):
+    '''alias for :hg:`next` (DEPRECATED)'''
+    ui.warn(_("warning: 'gup' is deprecated in favor of 'next'\n"))
+
+    return cmdnext(ui, repo)
+
+@command('^next',
+         [],
+         '')
+def cmdnext(ui, repo):
+    """update to child and display summary lines"""
 def cmdnext(ui, repo):
     """update to child and display summary lines"""
     wkctx = repo[None]