[Pkg-bazaar-commits] ./bzr-builddeb/trunk r335: Support Vcs-Hg in the deb: directory service if bzr-hg is installed.

Jelmer Vernooij jelmer at samba.org
Wed Apr 15 15:22:14 UTC 2009


------------------------------------------------------------
revno: 335
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: trunk
timestamp: Tue 2009-03-24 00:50:11 +0100
message:
  Support Vcs-Hg in the deb: directory service if bzr-hg is installed.
modified:
  debian/changelog
  directory.py
-------------- next part --------------
=== modified file 'debian/changelog'
--- a/debian/changelog	2009-03-08 23:05:19 +0000
+++ b/debian/changelog	2009-03-23 23:50:11 +0000
@@ -1,8 +1,12 @@
 bzr-builddeb (2.1.2) UNRELEASED; urgency=low
 
+  [ James Westby ]
   * 
 
- -- James Westby <james.westby at ubuntu.com>  Mon, 09 Mar 2009 09:04:48 +1000
+  [ Jelmer Vernooij ]
+  * Support Vcs-Hg in the deb: directory service if bzr-hg is installed.
+
+ -- Jelmer Vernooij <jelmer at debian.org>  Tue, 24 Mar 2009 00:49:44 +0100
 
 bzr-builddeb (2.1.1) experimental; urgency=low
 

=== modified file 'directory.py'
--- a/directory.py	2009-01-30 04:38:21 +0000
+++ b/directory.py	2009-03-23 23:50:11 +0000
@@ -86,5 +86,15 @@
             else:
                 return urls[version]["Git"]
 
+        if "Hg" in urls[version]:
+            try:
+                import bzrlib.plugins.hg
+            except ImportError:
+                info("This package uses hg. If you would like to "
+                        "access it with bzr then please install bzr-hg"
+                        "and re-run the command.")
+            else:
+                return urls[version]["Hg"]
+
         raise errors.InvalidURL(path=url,
             extra='unsupported VCSes %r found' % urls[version].keys())



More information about the Pkg-bazaar-commits mailing list