diff options
Diffstat (limited to 'libbe/hg.py')
-rw-r--r-- | libbe/hg.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/libbe/hg.py b/libbe/hg.py index c7c736e..f8f8121 100644 --- a/libbe/hg.py +++ b/libbe/hg.py @@ -16,6 +16,10 @@ # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +""" +Mercurial (hg) backend. +""" + import os import re import sys @@ -23,12 +27,12 @@ import unittest import doctest import vcs -from vcs import VCS + def new(): return Hg() -class Hg(VCS): +class Hg(vcs.VCS): name="hg" client="hg" versioned=True @@ -63,14 +67,14 @@ class Hg(VCS): pass def _vcs_get_file_contents(self, path, revision=None, binary=False): if revision == None: - return VCS._vcs_get_file_contents(self, path, revision, binary=binary) + return vcs.VCS._vcs_get_file_contents(self, path, revision, binary=binary) else: status,output,error = \ self._u_invoke_client("cat","-r",revision,path) return output def _vcs_duplicate_repo(self, directory, revision=None): if revision == None: - return VCS._vcs_duplicate_repo(self, directory, revision) + return vcs.VCS._vcs_duplicate_repo(self, directory, revision) else: self._u_invoke_client("archive", "--rev", revision, directory) def _vcs_commit(self, commitfile, allow_empty=False): |