bzr log shows negative revision numbers

Nicholas Allen nick.allen at onlinehome.de
Tue Feb 16 17:19:03 GMT 2010


Thanks John.

I found a reproducable way to create this bug that doesn't need to use
upgrade command. Basicaly merging an existing branch with more than one
revision into a newly created branch with no revisions shows this problem:

bzr init test
cd test
echo hello >> hello.txt
bzr add
bzr ci -m "Add hello"
echo hello >> hello.txt
bzr ci -m "Another commit"

cd ../
bzr init test2
cd test2
bzr merge ../test
bzr ci -m "Merge"

bzr log

Nick


John Arbash Meinel wrote:
> Nicholas Allen wrote:
> > Hi,
>
> > We have a branch where the revision numbers go into negative numbers.
> > qlog does not show them as negative numbers only bzr log on the command
> > line does.
>
> > How can a branch have negative revision numbers? This must be a bug
> right?
>
> > Nick
>
>
>
> This would happen if the branch's cached revno is incorrect.
>
> You can fix it with 'bzr reconcile', but IIRC there isn't a way to just
> reconcile the branch without having it try to reconcile the repository.
> I think we do the branch first, though, so after it says branch revno
> fixed, you can probably stop the reconcile process.
>
> The other option is that I think "bzr pull" (when actually updating the
> branch tip) will fix the number.
>
> John
> =:->
>




More information about the bazaar mailing list