detecting version match/mismatch between core/plugins

Michael Ellerman michael at ellerman.id.au
Tue Aug 15 09:07:03 BST 2006


On Tue, 2006-08-15 at 13:47 +1000, Robert Collins wrote:
> On Fri, 2006-08-11 at 11:16 +1000, Michael Ellerman wrote:
> > 
> > 
> > It would be easy enough to have a version number in the plugin and
> > fail to load it if it's too low or high, it would just require someone
> > to write the code :) 
> 
> I think its up to the plugin to do that... keeps them more like regular
> python files.

Yeah, I guess. It might be nice to have a helper function, and perhaps a
special exception, PluginVersionMismatch() or something, that bzr could
choose to swallow or print or dump to log.

But then you'd need a version check to see if the helper/exception
existed ;)

cheers

-- 
Michael Ellerman
IBM OzLabs

wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)

We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060815/1f680d7b/attachment.pgp 


More information about the bazaar mailing list