diff options
author | W. Trevor King <wking@drexel.edu> | 2009-08-31 14:19:40 -0400 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2009-08-31 14:19:40 -0400 |
commit | 027cda3613f7a81de557d6dd929d0d4de40192a1 (patch) | |
tree | 4c35f4b2b7f6105ab32dff41522b7eb041774d0e /libbe/hg.py | |
parent | e67058f13ce09ab6870c8bd8ebfa2f198bd06b47 (diff) | |
download | bugseverywhere-027cda3613f7a81de557d6dd929d0d4de40192a1.tar.gz |
Added docstrings to libbe submodules.
Also a few minor tweaks to the module imports.
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): |