diff hgext/obsolete.py @ 274:6622a24f3b0f

obsolete: fix rebase wrapping ui and repo arguments were swapped which made --keep calls traceback.
author Patrick Mezard <patrick@mezard.eu>
date Tue, 19 Jun 2012 09:23:50 +0200
parents 87e4d1eec5e8
children 336210dada95
line wrap: on
line diff
--- a/hgext/obsolete.py	Tue Jun 19 10:02:32 2012 +0200
+++ b/hgext/obsolete.py	Tue Jun 19 09:23:50 2012 +0200
@@ -230,12 +230,12 @@
     repo.addobsolete(newnode, oldnode)
     return newrev
 
-def cmdrebase(orig, repo, ui, *args, **kwargs):
+def cmdrebase(orig, ui, repo, *args, **kwargs):
     oldkeep = kwargs.pop('keep', False)
     if oldkeep:
         ui.warn('WARNING --keep option ignored by experimental obsolete extension')
     kwargs['keep'] = True
-    return orig(repo, ui, *args, **kwargs)
+    return orig(ui, repo, *args, **kwargs)