How to change the Bazaar repository to "no-trees"

Asked by Vijaya Kumar

Hi,

I have migrated SVN repositories to Bazaar and mistakenly i created all bazaar repositories with default working tree.
Now I would like to change those repositories to "no-trees"., how to do this?

Thanks & Regards,
Vijay

Question information

Language:
English Edit question
Status:
Solved
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Solved by:
John A Meinel
Solved:
Last query:
Last reply:
Revision history for this message
Vincent Ladeuil (vila) said :
#1

In the repository directory:

  bzr reconfigure --with-no-trees

I'm not sure the command will walk all the branches to remove the existing working trees though so you may have to issue: 'bzr reconfigure --branch' in each of them.

Revision history for this message
Martin Packman (gz) said :
#2

See `bzr help reconfigure`, which you'll want to run using --with-no-trees against the shared repository location. This won't remove the trees from any existing branches, underneath the repo, but you can do that seperately if you wish (and are careful not to destroy uncommitted changes).

Revision history for this message
Vijaya Kumar (vijayakumar-cm) said :
#3

I tried running this command in repository (same branch) but gives me this error,

>bzr reconfigure --with-no-trees
bzr: ERROR: Requested reconfiguration of 'X:/XXXX/BRANCH/' is not supported.

Revision history for this message
Best John A Meinel (jameinel) said :
#4

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

On 11/7/2012 6:01 AM, Vijaya Kumar wrote:
> Question #213414 on Bazaar changed:
> https://answers.launchpad.net/bzr/+question/213414
>
> Status: Answered => Open
>
> Vijaya Kumar is still having a problem: I tried running this
> command in repository (same branch) but gives me this error,
>
>
>> bzr reconfigure --with-no-trees
> bzr: ERROR: Requested reconfiguration of 'X:/XXXX/BRANCH/' is not
> supported.
>

You could also try "bzr remove-tree X:XXXX/BRANCH/".

I'm guessing the issue is that you don't actually have a shared
repository, just a co-located repository+branch+workingtree. "bzr
reconfigure --with-no-trees" is for a shared repository setting.

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (Cygwin)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlCZ6sQACgkQJdeBCYSNAAPCQACfQgr/RTq1V9wYEPOsqrc6WG++
BxMAnRbljM3DrTwtTf1cOXXq0tmAmqBy
=Utml
-----END PGP SIGNATURE-----

Revision history for this message
Vijaya Kumar (vijayakumar-cm) said :
#5

I used a python script to migrate SVN repository to Bazaar, looks like it didn't create a shared repository.

Anyhow i can use this "remove-tree" option to resolve my issue.

Thanks for your help :)

Revision history for this message
Vijaya Kumar (vijayakumar-cm) said :
#6

Thanks John A Meinel, that solved my question.