RonnyPfannschmidt / anyvc
generic vcs abstraction (used in pida)
Clone this repository (size: 300.7 KB): HTTPS / SSH
$ hg clone http://bitbucket.org/RonnyPfannschmidt/anyvc/
| commit 167: | 3f747042e776 |
| parent 166: | 86e9952c0eee |
| branch: | default |
fix+cleanup hg ui handling
- View RonnyPfannschmidt's profile
-
RonnyPfannschmidt's public repos »
- pida-patches
- vimish
- virtualenvmanager
- py-virtualenv
- pida-hacks
- distribute-0.6
- distribute-resources
- pytest-codecheckers
- py-execnet3k
- gexcept
- glashammer-main
- flatland-htmlwidgets
- django-vcstorage-new-anyvc
- hgpaste
- chrome-markman
- apipkg
- kij
- gtkarchitect-main
- gazpacho
- plugpost
- rope-qickfix
- pyscope
- anyvc
- prolog
- Send message
9 months ago
Changed (Δ83 bytes):
raw changeset »
anyvc/workdir/hg.py (5 lines added, 7 lines removed)
Up to file-list anyvc/workdir/hg.py:
| … | … | @@ -21,7 +21,7 @@ from mercurial.__version__ import versio |
21 |
21 |
if hgversion in ('1.0', '1.0.1', '1.0.2') or hgversion[0]=='0': |
22 |
22 |
raise ImportError('HG version too old, please update to a release >= 1.1') |
23 |
23 |
|
24 |
from mercurial import ui |
|
24 |
from mercurial import ui as hgui, hg, commands, util |
|
25 |
25 |
from mercurial.match import always, exact |
26 |
26 |
|
27 |
27 |
__all__ = 'Mercurial', |
| … | … | @@ -74,10 +74,10 @@ class Mercurial(WorkDir): |
74 |
74 |
""" |
75 |
75 |
self.path = os.path.normpath( os.path.abspath(path) ) |
76 |
76 |
try: |
77 |
|
|
77 |
ui = hgui.ui(interactive=False, verbose=True, debug=True) |
|
78 |
78 |
except TypeError: # hg >= 1.3 ui |
79 |
self.ui = ui.ui() |
|
80 |
self.ui.setconfig('ui', 'interactive', 'off') |
|
79 |
ui = hgui.ui() |
|
80 |
ui.setconfig('ui', 'interactive', 'off') |
|
81 |
81 |
ignored_path = os.environ.get('ANYVC_IGNORED_PATHS', '').split(os.pathsep) |
82 |
82 |
|
83 |
83 |
if create: |
| … | … | @@ -88,10 +88,8 @@ class Mercurial(WorkDir): |
88 |
88 |
if self.base_path is None or self.base_path in ignored_path: |
89 |
89 |
raise NotFoundError(self.__class__, path) |
90 |
90 |
|
91 |
self.ui.pushbuffer() |
|
92 |
self.repo = hg.repository(self.ui, self.path, create=create) |
|
91 |
self.repo = hg.repository(ui, self.path, create=create) |
|
93 |
92 |
self.ui = self.repo.ui |
94 |
self.__init_out = self.ui.popbuffer() |
|
95 |
93 |
|
96 |
94 |
def status(self, paths=(), *k, **kw): |
97 |
95 |
recursive = kw.get('recursive') |
