jhbuild r2462 - in trunk: . jhbuild/versioncontrol
- From: johncarr svn gnome org
- To: svn-commits-list gnome org
- Subject: jhbuild r2462 - in trunk: . jhbuild/versioncontrol
- Date: Wed, 5 Nov 2008 14:49:13 +0000 (UTC)
Author: johncarr
Date: Wed Nov 5 14:49:13 2008
New Revision: 2462
URL: http://svn.gnome.org/viewvc/jhbuild?rev=2462&view=rev
Log:
* jhbuild/versioncontrol/bzr.py:
Start to support bzr repositories where there are multiple branches
below $repo/$module
Modified:
trunk/ChangeLog
trunk/jhbuild/versioncontrol/bzr.py
Modified: trunk/jhbuild/versioncontrol/bzr.py
==============================================================================
--- trunk/jhbuild/versioncontrol/bzr.py (original)
+++ trunk/jhbuild/versioncontrol/bzr.py Wed Nov 5 14:49:13 2008
@@ -46,12 +46,13 @@
It can be a parent of a number of Bzr repositories or branches.
"""
- init_xml_attrs = ['href']
+ init_xml_attrs = ['href', 'trunk-path']
- def __init__(self, config, name, href):
+ def __init__(self, config, name, href, trunk_path=''):
Repository.__init__(self, config, name)
# allow user to adjust location of branch.
self.href = config.repos.get(name, href)
+ self.trunk_path = trunk_path
branch_xml_attrs = ['module', 'checkoutdir']
@@ -62,7 +63,10 @@
raise FatalError(_('branch for %s has wrong override, check your .jhbuildrc') % name)
else:
if module is None:
- module = name
+ if self.trunk_path:
+ module = name + "/" + self.trunk_path
+ else:
+ module = name
module = urlparse.urljoin(self.href, module)
if checkoutdir is None:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]