aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/storage/vcs/hg.py
diff options
context:
space:
mode:
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)