diff options
author | W. Trevor King <wking@drexel.edu> | 2009-12-13 07:39:55 -0500 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2009-12-13 07:39:55 -0500 |
commit | 55e0abfa27b693768f495044d10444d9d92e4fca (patch) | |
tree | f7d5f1b3efb28ea4dbd8fe37a1a083c44b0562f8 /libbe/storage/vcs/hg.py | |
parent | 85aa14161c125f996f0d146b93f9cb06a0b3928f (diff) | |
download | bugseverywhere-55e0abfa27b693768f495044d10444d9d92e4fca.tar.gz |
More fixes for libbe.storage.vcs.hg + .git transition.
Diffstat (limited to 'libbe/storage/vcs/hg.py')
-rw-r--r-- | libbe/storage/vcs/hg.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libbe/storage/vcs/hg.py b/libbe/storage/vcs/hg.py index 67c5bf3..fb3ee3f 100644 --- a/libbe/storage/vcs/hg.py +++ b/libbe/storage/vcs/hg.py @@ -22,7 +22,9 @@ Mercurial (hg) backend. """ import os +import os.path import re +import shutil import sys import libbe @@ -68,6 +70,11 @@ class Hg(base.VCS): def _vcs_init(self, path): self._u_invoke_client('init', cwd=path) + def _vcs_destroy(self): + vcs_dir = os.path.join(self.repo, '.hg') + if os.path.exists(vcs_dir): + shutil.rmtree(vcs_dir) + def _vcs_add(self, path): self._u_invoke_client('add', path) |