Mercurial > hg-stable
comparison hgext/largefiles/uisetup.py @ 23182:9b6c3947b4a7
largefiles: wrap "rebase.rebase" for functions using it directly
Before this patch, largefiles extension wraps only "rebase" in the
command table by "extensions.wrapcommand". But there are some
functions using "rebase.rebase" directly.
Without special care for them, largefiles extension can't work
correctly with such functions. In addition to it, "special care" often
becomes complicated and awkward. For example:
- "unshelve" can't get correct result of "rebase.rebase", because of
lack of special care
- special care for "hg pull --rebase" causes issue3861
This patch wraps "rebase.rebase" for functions using it directly.
For simplicity, this patch keeps 'special care for "hg pull --rebase"'.
It is removed in the subsequent patch.
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Wed, 05 Nov 2014 23:24:47 +0900 |
parents | e26df4e774f6 |
children | 4be754832829 |
comparison
equal
deleted
inserted
replaced
23181:832b7ef275c8 | 23182:9b6c3947b4a7 |
---|---|
167 extensions.wrapcommand(getattr(module, 'cmdtable'), 'purge', | 167 extensions.wrapcommand(getattr(module, 'cmdtable'), 'purge', |
168 overrides.overridepurge) | 168 overrides.overridepurge) |
169 if name == 'rebase': | 169 if name == 'rebase': |
170 extensions.wrapcommand(getattr(module, 'cmdtable'), 'rebase', | 170 extensions.wrapcommand(getattr(module, 'cmdtable'), 'rebase', |
171 overrides.overriderebase) | 171 overrides.overriderebase) |
172 extensions.wrapfunction(module, 'rebase', | |
173 overrides.overriderebase) | |
172 if name == 'transplant': | 174 if name == 'transplant': |
173 extensions.wrapcommand(getattr(module, 'cmdtable'), 'transplant', | 175 extensions.wrapcommand(getattr(module, 'cmdtable'), 'transplant', |
174 overrides.overridetransplant) | 176 overrides.overridetransplant) |
175 if name == 'convert': | 177 if name == 'convert': |
176 convcmd = getattr(module, 'convcmd') | 178 convcmd = getattr(module, 'convcmd') |