git://git.onelab.eu
/
build.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1aae742
)
Repository.checkout()
author
Barış Metin
<Talip-Baris.Metin@sophia.inria.fr>
Mon, 14 Jun 2010 14:28:09 +0000
(16:28 +0200)
committer
Barış Metin
<Talip-Baris.Metin@sophia.inria.fr>
Mon, 14 Jun 2010 14:28:09 +0000
(16:28 +0200)
module-tools.py
patch
|
blob
|
history
diff --git
a/module-tools.py
b/module-tools.py
index
ac4deb6
..
c4ebf52
100755
(executable)
--- a/
module-tools.py
+++ b/
module-tools.py
@@
-243,6
+243,17
@@
class Repository:
return True
return False
+ @classmethod
+ def checkout(cls, module, config, options, git=False):
+ target = "%s/%s" % (options.workdir)
+
+ if git:
+ return GitRepository.checkout("%s:/git/%s.git" % (config['gitserver'], module),
+ target, options, depth=0)
+ else:
+ return SvnRepository.checkout("%s/%s" % (config['svnpath'], module),
+ target, options)
+
def __getattr__(self, attr):
return getattr(self.repo, attr)