##// END OF EJS Templates
color/progress: subclass ui instead of using wrapfunction (issue2096)...
color/progress: subclass ui instead of using wrapfunction (issue2096) This resolves the issue of hg cmd --mq not being colorized. This was due to color wrapping only the instance of ui passed to dispatch._runcommand(), which isn't the same ui object that mq.mqcommand() receives. After dispatch calls extensions.loadall(), it makes sure any changes to ui.__class__ in uisetup are propagated. progress is updated to wrap ui in the same manner because wrapfunction doesn't play well when ui.__class__ has been replaced by another extension (orig will point to the old class method instead of color's).

File last commit:

r10826:717c35d5 default
r11555:d8d0fc39 stable
Show More
test-bookmarks-current.out
27 lines | 797 B | text/plain | TextLexer
/ tests / test-bookmarks-current.out
% no bookmarks
no bookmarks set
% set bookmark X
% list bookmarks
* X -1:000000000000
% list bookmarks with color
 * X -1:000000000000
% update to bookmark X
0 files updated, 0 files merged, 0 files removed, 0 files unresolved
% list bookmarks
* X -1:000000000000
% rename
% list bookmarks
* Z -1:000000000000
% new bookmark Y
% list bookmarks
* Y -1:000000000000
Z -1:000000000000
% commit
% list bookmarks
* Y 0:719295282060
Z -1:000000000000
% delete bookmarks
% list bookmarks
no bookmarks set
% update to tip
0 files updated, 0 files merged, 0 files removed, 0 files unresolved