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/bzr.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/bzr.py')
-rw-r--r-- | libbe/bzr.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/libbe/bzr.py b/libbe/bzr.py index 48bfd64..c551ff0 100644 --- a/libbe/bzr.py +++ b/libbe/bzr.py @@ -17,6 +17,10 @@ # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +""" +Bazaar (bzr) backend. +""" + import os import re import sys @@ -24,12 +28,12 @@ import unittest import doctest import vcs -from vcs import VCS + def new(): return Bzr() -class Bzr(VCS): +class Bzr(vcs.VCS): name = "bzr" client = "bzr" versioned = True @@ -60,14 +64,14 @@ class Bzr(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: - VCS._vcs_duplicate_repo(self, directory, revision) + vcs.VCS._vcs_duplicate_repo(self, directory, revision) else: self._u_invoke_client("branch", "--revision", revision, ".", directory) |