From 741c14b644a3c2a134163d2372e97ec70c3ae9bc Mon Sep 17 00:00:00 2001 From: Hans Ulrich Niedermann Date: Tue, 1 Jul 2008 00:46:07 +0200 Subject: Document detect() plugin methods --- src/nbblib/vcs.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/nbblib/vcs.py') 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) -- cgit