aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/arch.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/arch.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/arch.py')
-rw-r--r--libbe/arch.py15
1 files changed, 10 insertions, 5 deletions
diff --git a/libbe/arch.py b/libbe/arch.py
index b68d732..ab55172 100644
--- a/libbe/arch.py
+++ b/libbe/arch.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.
+"""
+GNU Arch (tla) backend.
+"""
+
import codecs
import os
import re
@@ -26,10 +30,11 @@ import time
import unittest
import doctest
-import config
from beuuid import uuid_gen
+import config
import vcs
-from vcs import VCS
+
+
DEFAULT_CLIENT = "tla"
@@ -38,7 +43,7 @@ client = config.get_val("arch_client", default=DEFAULT_CLIENT)
def new():
return Arch()
-class Arch(VCS):
+class Arch(vcs.VCS):
name = "Arch"
client = client
versioned = True
@@ -246,7 +251,7 @@ class Arch(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._invoke_client("file-find", path, revision)
@@ -258,7 +263,7 @@ class Arch(VCS):
return contents
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:
status,output,error = \
self._u_invoke_client("get", revision,directory)