bzr cannot find tip revision in stacked remote branch lp:~lifeless/ubuntu/lucid/apt/bug-22354

Bug #523703 reported by Michael Vogt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Medium
Unassigned

Bug Description

Bzr acts as if it does not know about r98 in the following branch:

$ bzr log lp:~lifeless/ubuntu/lucid/apt/bug-22354|head -n 15
------------------------------------------------------------
revno: 98
committer: Robert Collins <email address hidden>
branch nick: apt
timestamp: Thu 2010-02-18 13:39:30 +1100
message:
  Change the package index Info methods to allow apt-cache policy to be
  useful when using several different archives on the same host.
  (Closes: #329814, LP: #22354)
------------------------------------------------------------
revno: 97
tags: 0.7.25ubuntu4
author: Michael Vogt <email address hidden>
committer: Bazaar Package Importer <email address hidden>
branch nick: lucid
$ $ bzr merge -r 97..98 lp:~lifeless/ubuntu/lucid/apt/bug-22354
bzr: ERROR: Requested revision: u'98' does not exist in branch: RemoteBranch(bzr+ssh://bazaar.launchpad.net/~lifeless/ubuntu/lucid/apt/bug-22354/)
$ bzr diff -r 97..98 lp:~lifeless/ubuntu/lucid/apt/bug-22354
bzr: ERROR: Requested revision: u'97' does not exist in branch: RemoteBranch(bzr+ssh://bazaar.launchpad.net/~lifeless/ubuntu/lucid/apt/bug-22354/)

However, if I:
$ bzr branch lp:~lifeless/ubuntu/lucid/apt/bug-22354
$ bzr diff -r 97..98
that works fine.

$ bzr --version
Bazaar (bzr) 2.1.0rc2
(from current lucid)

Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 523703] [NEW] bzr behave odd on lp:~lifeless/ubuntu/lucid/apt/bug-22354

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Michael Vogt wrote:
> Public bug reported:
>
> Bzr acts as if it does not know about r98 in the following branch:
>
> $ bzr log lp:~lifeless/ubuntu/lucid/apt/bug-22354|head -n 15
> ------------------------------------------------------------
> revno: 98
> committer: Robert Collins <email address hidden>
> branch nick: apt
> timestamp: Thu 2010-02-18 13:39:30 +1100
> message:
> Change the package index Info methods to allow apt-cache policy to be
> useful when using several different archives on the same host.
> (Closes: #329814, LP: #22354)
> ------------------------------------------------------------
> revno: 97
> tags: 0.7.25ubuntu4
> author: Michael Vogt <email address hidden>
> committer: Bazaar Package Importer <email address hidden>
> branch nick: lucid
> $ $ bzr merge -r 97..98 lp:~lifeless/ubuntu/lucid/apt/bug-22354
> bzr: ERROR: Requested revision: u'98' does not exist in branch: RemoteBranch(bzr+ssh://bazaar.launchpad.net/~lifeless/ubuntu/lucid/apt/bug-22354/)
> $ bzr diff -r 97..98 lp:~lifeless/ubuntu/lucid/apt/bug-22354
> bzr: ERROR: Requested revision: u'97' does not exist in branch: RemoteBranch(bzr+ssh://bazaar.launchpad.net/~lifeless/ubuntu/lucid/apt/bug-22354/)
>
> However, if I:
> $ bzr branch lp:~lifeless/ubuntu/lucid/apt/bug-22354
> $ bzr diff -r 97..98
> that works fine.
>

My guess is that something is wrong with the branch revision number.
What this give:
bzr diff -r -2..-1

You could try "bzr reconcile" and see if it tells you it is fixing the
revno.

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkt9VYUACgkQJdeBCYSNAAOJ8QCfWURWncEepLi7GkrzGbHD7GR7
zeMAoJTfRUbTisMxPsKmTBkXg+I5evB1
=dlsw
-----END PGP SIGNATURE-----

Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 523703] [NEW] bzr behave odd on lp:~lifeless/ubuntu/lucid/apt/bug-22354

On Thu, 2010-02-18 at 14:58 +0000, John A Meinel wrote:

> My guess is that something is wrong with the branch revision number.
> What this give:
> bzr diff -r -2..-1
>
> You could try "bzr reconcile" and see if it tells you it is fixing the
> revno.

I'm pretty sure its not that, as the same revno works locally before I
pushed :>.

I suspect its related to being a stacked branch with no revisions in the
local repo.

-Rob

Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 523703] [NEW] bzr behave odd on lp:~lifeless/ubuntu/lucid/apt/bug-22354

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Robert Collins wrote:
> On Thu, 2010-02-18 at 14:58 +0000, John A Meinel wrote:
>
>
>> My guess is that something is wrong with the branch revision number.
>> What this give:
>> bzr diff -r -2..-1
>>
>> You could try "bzr reconcile" and see if it tells you it is fixing the
>> revno.
>
> I'm pretty sure its not that, as the same revno works locally before I
> pushed :>.
>
> I suspect its related to being a stacked branch with no revisions in the
> local repo.
>
> -Rob
>

Yeah, I did investigate a bit more and the branch attributes all appear
to be fine. I also suspect a log + stacking issue, but I don't know
exactly where the problem lies.

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkt9wsoACgkQJdeBCYSNAAMfVQCcCLtQoe35I69OZJrPnl4wrjde
gf0AoK1MFlnHnPgKQExcOPM6tzLDA43b
=ajBV
-----END PGP SIGNATURE-----

Martin Pool (mbp)
summary: - bzr behave odd on lp:~lifeless/ubuntu/lucid/apt/bug-22354
+ inconsistent view of revision numbers on stacked remote branch
+ lp:~lifeless/ubuntu/lucid/apt/bug-22354
Changed in bzr:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 523703] Re: inconsistent view of revision numbers on stacked remote branch lp:~lifeless/ubuntu/lucid/apt/bug-22354

 summary bzr cannot find tip revision in stacked remote branch lp:~lifeless/ubuntu/lucid/apt/bug-22354

Revision history for this message
Robert Collins (lifeless) wrote :

summary "bzr cannot find tip revision in stacked remote branch lp:~lifeless/ubuntu/lucid/apt/bug-22354"

summary: - inconsistent view of revision numbers on stacked remote branch
+ bzr cannot find tip revision in stacked remote branch
lp:~lifeless/ubuntu/lucid/apt/bug-22354
Jelmer Vernooij (jelmer)
tags: added: stacking
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.