# HG changeset patch # User Jeff Hammel # Date 1304955673 25200 # Node ID b5cd8e22c86831a016a98d05c5722dd3d7e7c0a8 # Parent 61969be886325dd91f77567b39fcef51b88f1e96 use more defaults for default thing diff -r 61969be88632 -r b5cd8e22c868 bzconsole/api.py --- a/bzconsole/api.py Tue Jan 18 13:24:50 2011 -0800 +++ b/bzconsole/api.py Mon May 09 08:41:13 2011 -0700 @@ -85,7 +85,11 @@ # infer version if not given if version is None: - version = 'unspecified' + default_versions = ('unspecified', 'Trunk') + for ver in default_versions: + version = ver + if version in self._configuration['product'][product]['version']: + break assert version in self._configuration['product'][product]['version'], 'Version not found' # get the bug description