aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/storage/vcs/hg.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2009-12-13 07:39:55 -0500
committerW. Trevor King <wking@drexel.edu>2009-12-13 07:39:55 -0500
commit55e0abfa27b693768f495044d10444d9d92e4fca (patch)
treef7d5f1b3efb28ea4dbd8fe37a1a083c44b0562f8 /libbe/storage/vcs/hg.py
parent85aa14161c125f996f0d146b93f9cb06a0b3928f (diff)
downloadbugseverywhere-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.py7
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)