Mercurial > hg
diff tests/hghave @ 8127:17ab4dab50a6
Merge with crew-stable
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Thu, 23 Apr 2009 16:52:25 +0200 |
parents | 84d0fe34427b 13b36eb14324 |
children | ac9c4049fd29 |
line wrap: on
line diff
--- a/tests/hghave Wed Apr 22 20:15:55 2009 -0300 +++ b/tests/hghave Thu Apr 23 16:52:25 2009 +0200 @@ -31,6 +31,14 @@ except ImportError: return False +def has_bzr114(): + try: + import bzrlib + return (bzrlib.__doc__ != None + and bzrlib.version_info[:2] == (1, 14)) + except ImportError: + return False + def has_cvs(): re = r'Concurrent Versions System.*?server' return matchoutput('cvs --version 2>&1', re) @@ -163,6 +171,7 @@ checks = { "baz": (has_baz, "GNU Arch baz client"), "bzr": (has_bzr, "Canonical's Bazaar client"), + "bzr114": (has_bzr114, "Canonical's Bazaar client >= 1.14"), "cvs": (has_cvs, "cvs client/server"), "cvsps": (has_cvsps, "cvsps utility"), "darcs": (has_darcs, "darcs client"),