Mapping between bzr and svn revisions

Asked by Cerf

Hello,

  I was wondering if there is a way to know the real Bazaar revision number from a Subversion revision.
  I have a Bazaar repo I'm working on and a central SVN repo which is pushed from Bazaar.
  The revision number of my Bazaar repo is less than the revision number of the SVN repo (although it is really used as a mirror).
  It seems that svn_rev = bzr_rev + tags_count

  So is there a simple means to get the real bazaar revno from the svn side ?

Question information

Language:
English Edit question
Status:
Answered
For:
Bazaar Subversion Plugin Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Jelmer Vernooij (jelmer) said :
#1

On 07/06/2011 12:01 PM, Cerf wrote:
> New question #163916 on Bazaar Subversion Plugin:
> https://answers.launchpad.net/bzr-svn/+question/163916
>
> Hello,
>
> I was wondering if there is a way to know the real Bazaar revision number from a Subversion revision.
> I have a Bazaar repo I'm working on and a central SVN repo which is pushed from Bazaar.
> The revision number of my Bazaar repo is less than the revision number of the SVN repo (although it is really used as a mirror).
> It seems that svn_rev = bzr_rev + tags_count
>
> So is there a simple means to get the real bazaar revno from the svn side ?
it's not as simple as that; the bzr revision number is the number of
revisions in the branch mainline, and the svn revision number is the
number of revisions in the repository.

You can use "bzr log -rBZR_REVNO" on the svn repository to find the svn
revno for a bzr revision, and "bzr log -rsvn:SVN_REVNO" to find the bzr
revision matching a particular svn revno.

Cheers,

jelmer

Can you help with this problem?

Provide an answer of your own, or ask Cerf for more information if necessary.

To post a message you must log in.