aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/git.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2009-08-31 14:19:40 -0400
committerW. Trevor King <wking@drexel.edu>2009-08-31 14:19:40 -0400
commit027cda3613f7a81de557d6dd929d0d4de40192a1 (patch)
tree4c35f4b2b7f6105ab32dff41522b7eb041774d0e /libbe/git.py
parente67058f13ce09ab6870c8bd8ebfa2f198bd06b47 (diff)
downloadbugseverywhere-027cda3613f7a81de557d6dd929d0d4de40192a1.tar.gz
Added docstrings to libbe submodules.
Also a few minor tweaks to the module imports.
Diffstat (limited to 'libbe/git.py')
-rw-r--r--libbe/git.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/libbe/git.py b/libbe/git.py
index 3345b57..137cb35 100644
--- a/libbe/git.py
+++ b/libbe/git.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.
+"""
+Git backend.
+"""
+
import os
import re
import sys
@@ -23,12 +27,12 @@ import unittest
import doctest
import vcs
-from vcs import VCS
+
def new():
return Git()
-class Git(VCS):
+class Git(vcs.VCS):
name="git"
client="git"
versioned=True
@@ -89,14 +93,14 @@ class Git(VCS):
self._vcs_add(path)
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:
arg = "%s:%s" % (revision,path)
status,output,error = self._u_invoke_client("show", arg)
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("archive", revision, directory) # makes tarball
self._u_invoke_client("clone", "--no-checkout",".",directory)