Merge lp:~jelmer/bzr-builddeb/directory-git into lp:~bzr-builddeb-hackers/bzr-builddeb/trunk-old

Proposed by Jelmer Vernooij
Status: Merged
Merge reported by: James Westby
Merged at revision: not available
Proposed branch: lp:~jelmer/bzr-builddeb/directory-git
Merge into: lp:~bzr-builddeb-hackers/bzr-builddeb/trunk-old
Diff against target: None lines
To merge this branch: bzr merge lp:~jelmer/bzr-builddeb/directory-git
To post a comment you must log in.
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

Now that bzr-git supports retrieving remote git branches, it is possible
to support Vcs-Git in bzr-builddeb. The attached patch updates the
directory service to do this, similar to the way it's done for bzr-svn.

Cheers,

Jelmer
--
Jelmer Vernooij <email address hidden> - http://samba.org/~jelmer/
Jabber: <email address hidden>

Revision history for this message
James Westby (james-w) wrote :

On Fri, 2009-01-30 at 04:42 +0000, Jelmer Vernooij wrote:
> Now that bzr-git supports retrieving remote git branches, it is possible
> to support Vcs-Git in bzr-builddeb. The attached patch updates the
> directory service to do this, similar to the way it's done for bzr-svn.

Looks good to me, thanks.

Also, thanks for your work on bzr-git, I'll have to try this out for
myself.

Thanks,

James

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'directory.py'
2--- directory.py 2008-08-29 17:34:06 +0000
3+++ directory.py 2009-01-30 04:38:21 +0000
4@@ -76,5 +76,15 @@
5 else:
6 return urls[version]["Svn"]
7
8+ if "Git" in urls[version]:
9+ try:
10+ import bzrlib.plugins.git
11+ except ImportError:
12+ info("This package uses git. If you would like to "
13+ "access it with bzr then please install bzr-git "
14+ "and re-run the command.")
15+ else:
16+ return urls[version]["Git"]
17+
18 raise errors.InvalidURL(path=url,
19 extra='unsupported VCSes %r found' % urls[version].keys())
20

Subscribers

People subscribed via source and target branches