# HG changeset patch # User Patrick Mezard # Date 1340090630 -7200 # Node ID 6622a24f3b0f178227720f3bce1171410f3563fb # Parent 87e4d1eec5e870205ffd1c2ced2ae97338006bcb obsolete: fix rebase wrapping ui and repo arguments were swapped which made --keep calls traceback. diff -r 87e4d1eec5e8 -r 6622a24f3b0f hgext/obsolete.py --- 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) diff -r 87e4d1eec5e8 -r 6622a24f3b0f tests/test-obsolete.t --- a/tests/test-obsolete.t Tue Jun 19 10:02:32 2012 +0200 +++ b/tests/test-obsolete.t Tue Jun 19 09:23:50 2012 +0200 @@ -453,3 +453,26 @@ adding manifests adding file changes added 1 changesets with 1 changes to 1 files (+1 heads) + $ cd .. + + +Test compatibility with other extensions + + $ hg init compat + $ cd compat + $ echo a > a + $ hg ci -Am adda + adding a + $ echo a >> a + $ hg ci -m changea + $ hg up 0 + 1 files updated, 0 files merged, 0 files removed, 0 files unresolved + $ echo b > b + $ hg ci -Am addb + adding b + created new head + +Test rebase --keep warning + + $ hg --config extensions.rebase= rebase -d 1 --keep + WARNING --keep option ignored by experimental obsolete extension (no-eol)