how to limit number of revisions retrieved from subversion

Asked by IvanMoore

I'd like to use bazaar as a front-end to a very slow subversion server (in order to use bazaar's features but still able to use the shared svn repo). The problem I'm having is in doing the initial checkout or branch taking too long. I'd like to be able to cut short the history from svn, because I'm not interested in very old history and I'd like the initial checkout to be much quicker. Git has an option for specifying which range of revisions to retrieve from subversion and I am expecting that bazaar has one too - but I haven't found it.

The instructions on http://doc.bazaar.canonical.com/bzr.2.0/en/user-guide/svn_plugin.html don't cover this case, but I think it is probably quite a common situation. I'm not sure how I'm supposed to do this but tried a few things.

I tried something like "bzr checkout --lightweight https://subversionserver trunk" then "bzr branch trunk featurebranch" but the "bzr branch" results in all the history being retrieved. I tried "bzr svn-import --until=50 https://subversionserver" but this seems to retrieve the earliest 50 revisions rather than the latest 50 revisions and I didn't see an option for that. I tried "bzr branch --stacked https://subversionserver" but that didn't work (and I'm not even sure whether it was a sensible thing to try!).

Instructions for this scenario would be most welcome.

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 Wed, 2009-12-30 at 20:17 +0000, IvanMoore wrote:
> New question #95700 on Bazaar Subversion Plugin:
> https://answers.launchpad.net/bzr-svn/+question/95700
>
> I'd like to use bazaar as a front-end to a very slow subversion server (in order to use bazaar's features but still able to use the shared svn repo). The problem I'm having is in doing the initial checkout or branch taking too long. I'd like to be able to cut short the history from svn, because I'm not interested in very old history and I'd like the initial checkout to be much quicker. Git has an option for specifying which range of revisions to retrieve from subversion and I am expecting that bazaar has one too - but I haven't found it.
>
> The instructions on http://doc.bazaar.canonical.com/bzr.2.0/en/user-guide/svn_plugin.html don't cover this case, but I think it is probably quite a common situation. I'm not sure how I'm supposed to do this but tried a few things.
>
> I tried something like "bzr checkout --lightweight https://subversionserver trunk" then "bzr branch trunk featurebranch" but the "bzr branch" results in all the history being retrieved. I tried "bzr svn-import --until=50 https://subversionserver" but this seems to retrieve the earliest 50 revisions rather than the latest 50 revisions and I didn't see an option for that. I tried "bzr branch --stacked https://subversionserver" but that didn't work (and I'm not even sure whether it was a sensible thing to try!).
That's correct - "bzr branch" without options is intended to clone the entire history of a branch.

> Instructions for this scenario would be most welcome.
This scenario is not supported yet in Bazaar - it would need support for
either history horizons or inter-repository stacking ("bzr branch
--stacked"). Both of these are very much related.

Cheers,

Jelmer

Can you help with this problem?

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

To post a message you must log in.