equal
deleted
inserted
replaced
70 from mercurial.lock import release |
70 from mercurial.lock import release |
71 from mercurial import localrepo |
71 from mercurial import localrepo |
72 from mercurial import cmdutil |
72 from mercurial import cmdutil |
73 from mercurial import templatekw |
73 from mercurial import templatekw |
74 from mercurial import obsolete |
74 from mercurial import obsolete |
|
75 from mercurial.localrepo import storecache |
75 obsolete._enabled = True |
76 obsolete._enabled = True |
76 |
77 |
77 try: |
|
78 from mercurial.localrepo import storecache |
|
79 storecache('babar') # to trigger import |
|
80 except (TypeError, ImportError): |
|
81 def storecache(*args): |
|
82 return scmutil.filecache(*args, instore=True) |
|
83 |
78 |
84 |
79 |
85 ### Patch changectx |
80 ### Patch changectx |
86 ############################# |
81 ############################# |
87 |
82 |
598 return new |
593 return new |
599 |
594 |
600 def uisetup(ui): |
595 def uisetup(ui): |
601 extensions.wrapcommand(commands.table, "update", wrapmayobsoletewc) |
596 extensions.wrapcommand(commands.table, "update", wrapmayobsoletewc) |
602 extensions.wrapcommand(commands.table, "pull", wrapmayobsoletewc) |
597 extensions.wrapcommand(commands.table, "pull", wrapmayobsoletewc) |
603 if util.safehasattr(cmdutil, 'amend'): |
598 extensions.wrapfunction(cmdutil, 'amend', wrapcmdutilamend) |
604 extensions.wrapfunction(cmdutil, 'amend', wrapcmdutilamend) |
|
605 extensions.wrapfunction(discovery, 'checkheads', wrapcheckheads) |
599 extensions.wrapfunction(discovery, 'checkheads', wrapcheckheads) |
606 extensions.wrapfunction(phases, 'advanceboundary', wrapclearcache) |
600 extensions.wrapfunction(phases, 'advanceboundary', wrapclearcache) |
607 |
601 |
608 ### serialisation |
602 ### serialisation |
609 ############################# |
603 ############################# |