[PATCH] Missing revision spec for "bzr version"
Lalo Martins
lalo at exoweb.net
Fri Sep 16 16:48:59 BST 2005
Heh, how ironic. I broke one of my own first contributions.
/me blushes and goes hide somewhere
And so says John A Meinel on 16/09/05 22:49...
> In the latest bzr.dev code, "bzr version" no longer prints out the
> revision information.
>
> The problem is that __init__.py was changed and get_bzr_revision() did
> not return the right value.
...
> - branch = Branch.open(__path__[0])
> + import os
> + branch = Branch.open(os.path.dirname(__path__[0]))
Nope, not quite. __path__ was always bzrlib. The right fix is:
- branch = Branch.open(__path__[0])
+ branch = Branch.open_containing(__path__[0])
best,
Lalo Martins
--
So many of our dreams at first seem impossible,
then they seem improbable, and then, when we
summon the will, they soon become inevitable.
--
http://www.exoweb.net/ mailto:lalo at exoweb.net
GNU: never give up freedom http://www.gnu.org/
More information about the bazaar
mailing list