summaryrefslogtreecommitdiffstats
path: root/src/nbblib/vcs.py
diff options
context:
space:
mode:
authorHans Ulrich Niedermann <hun@n-dimensional.de>2008-07-01 00:46:07 +0200
committerHans Ulrich Niedermann <hun@n-dimensional.de>2008-07-15 12:28:55 +0200
commit741c14b644a3c2a134163d2372e97ec70c3ae9bc (patch)
tree45059202ab420c6524017c6a5a5dc1f99a3bdaf1 /src/nbblib/vcs.py
parentd3571ab23839adb57216378539425fb3c42c0bc2 (diff)
downloadnbb-741c14b644a3c2a134163d2372e97ec70c3ae9bc.tar.gz
nbb-741c14b644a3c2a134163d2372e97ec70c3ae9bc.tar.xz
nbb-741c14b644a3c2a134163d2372e97ec70c3ae9bc.zip
Document detect() plugin methods
Diffstat (limited to 'src/nbblib/vcs.py')
-rw-r--r--src/nbblib/vcs.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nbblib/vcs.py b/src/nbblib/vcs.py
index 6162f3c..ed7d73e 100644
--- a/src/nbblib/vcs.py
+++ b/src/nbblib/vcs.py
@@ -82,6 +82,14 @@ class VCSourceTree(plugins.GenericDetectPlugin):
logging.debug("srcdir %s", srcdir)
return obj.tree_root == srcdir
+ @classmethod
+ def detect(cls, context, srcdir):
+ """Examine srcdir for VCS system and return proper VCSourceTree obj
+
+ @param srcdir string with absolute path of source code directory
+ """
+ super(VCSourceTree, cls).detect(context, srcdir)
+
def get_config(self):
"""Get configuration object which determines builddir etc"""
return AbstractConfig(self.tree_root, self.branch_name)