damned-lies r927 - trunk
- From: danilo svn gnome org
- To: svn-commits-list gnome org
- Subject: damned-lies r927 - trunk
- Date: Tue, 8 Jul 2008 12:06:58 +0000 (UTC)
Author: danilo
Date: Tue Jul 8 12:06:58 2008
New Revision: 927
URL: http://svn.gnome.org/viewvc/damned-lies?rev=927&view=rev
Log:
Add bzr support by Rob.
Modified:
trunk/ChangeLog
trunk/modules.py
Modified: trunk/modules.py
==============================================================================
--- trunk/modules.py (original)
+++ trunk/modules.py Tue Jul 8 12:06:58 2008
@@ -74,7 +74,7 @@
self.paths = {}
self.module = module
self.type = module["scmroot"]["type"]
- if self.type not in ('cvs','svn','hg','git'):
+ if self.type not in ('cvs','svn','hg','git', 'bzr'):
raise Exception("Source code manager of type '%s' non supported." % self.type)
if real_update:
@@ -119,6 +119,10 @@
"localdir" : modulepath,
"branch" : branch,
})
+ elif self.type == "bzr":
+ commandList.append("cd \"%(localdir)s\" && bzr up" % {
+ "localdir" : modulepath,
+ })
else:
# Checkout
if self.type == "cvs":
@@ -164,6 +168,19 @@
"localdir" : modulepath,
"branch" : branch,
})
+ elif self.type == "bzr":
+ bzrpath = scmroot + "/" + module
+ if branch == "trunk" or branch == "HEAD":
+ bzrpath += "/trunk"
+ else:
+ bzrpath += "/branches/" + branch
+ if self.module["branch"][branch].has_key("subpath"):
+ bzrpath += "/%s" % self.module["branch"][branch]["subpath"]
+ commandList.append("cd \"%(localroot)s\" && bzr co --lightweight %(bzrpath)s \"%(dir)s\"" % {
+ "localroot" : localroot,
+ "bzrpath" : bzrpath,
+ "dir" : moduledir,
+ })
# Run command(s)
errorsOccured = 0
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]