Running `bzr init` in a directory that just happens to be a Subversion checkout should not cause bzr-svn to run

Bug #278858 reported by Andrew Cowie
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Medium
Unassigned

Bug Description

I often use Bazaar to shuttle patches between my own working trees and an upstream project that code happens to originally come from. Common use case.

Yesterday I went to `bzr init .` in the root directory of a project and rather than it being virtually instantaneous, it started to chug. After wondering "WTF" for a few moments, suddenly I saw what appeared the be the bzr-svn plugin running off to do a cache initiation. Huh?

I didn't do `bzr checkout svn+ssh://` or whatever. I told it to initiate a new Bazaar branch in a directory that just happens to have another version control system's metadata in it as well. If I'd wanted to use bzr-svn, I would have said so. After a while I clued in to try `bzr --no-plugins init .` which of course completed in milliseconds. Fine. Thought I was past this issue. Frustrating, stupid behaviour making Bazaar look bad, but whatever.

Then I went to `bzr add` a file. Suddenly my network connection fired up as the Subverion cache initialization started trying to run again. STOP IT!

And as there are over 700,000 revisions in the upstream repository, cache initialization will complete sometime around when the Sun becomes a Red Giant. Maybe I don't want to wait that long?

(As an aside, jml's suggestion of `--builtin` didn't help here. I had to use `--no-plugins` again)

I really don't feel like having to remember to write `--no-plugins` every time I run a Bazaar command in this directory. That's ridiculous. But as my alternatives are either to uninstall bzr-svn or to maybe manually `rm -rf` the .svn directory in this tree, maybe I'm stuffed.

I'm really upset. I didn't ask for bzr-svn to run. I ran a basic Bazaar command and it failed. So this is not a bzr-svn bug. This is a bug against Bazaar for allowing itself to be subverted by a plugin!

Bazaar (bzr) 1.7.1

AfC

Andrew Cowie (afcowie)
description: updated
Revision history for this message
Bálint Aradi (balint.aradi) wrote :

Situation is actually much worse than that. bzr 1.9 fails to execute "bzr init" in any directories, containing a .svn entry, if the svn plugin is not installed. It does not matter, if .svn is a directory or a file, it crashes with an "internal error" due to failed import.

bzr 1.9 on python 2.5.2 (linux2)
arguments: ['/home/aradi/local/x86_64.Linux/bin/bzr', 'init']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
  email /usr/lib/python2.5/site-packages/bzrlib/plugins/email [unknown]
  gtk /usr/lib/python2.5/site-packages/bzrlib/plugins/gtk [0.93.0]
  launchpad /home/aradi/local/x86_64.Linux/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
  svn /usr/lib/python2.5/site-packages/bzrlib/plugins/svn [0.4.9]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.

Of course, using --no-plugins helps, but that's more than annoying.

Regards,

   Bálint

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

Balint, that last issue has been resolved now.

Revision history for this message
Vincent Ladeuil (vila) wrote :

AfC, does it still occurs with recent versions of bzr ?
jelmer, can you shed some light on what is going on here (or even was going on if it doesn't occur anymore) ?

Changed in bzr:
status: New → Incomplete
Revision history for this message
Alexandr Litjagin (alexraynepe196) wrote :

use bzr 2.1.0rc1.
it is failed to init reposutory in directoryalredy versioned under svn:

Run command: bzr init --format=default D:\save\pas\fbdataset.hg
Initialising Subversion metadata cache in C:\Documents and Settings\NetUser\Local Settings\Application Data\svn-cache\64399b8e-7363-11dd-97ff-8a9802cff739.
bzr: ERROR: Already a branch: "D:\save\pas\fbdataset.hg".
Run command: bzr init --format=default D:\save\pas\fbdataset.hg
bzr: ERROR: Already a branch: "D:\save\pas\fbdataset.hg".
Run command: bzr init --format=default D:/save/pas/fbdataset
bzr: ERROR: Already a branch: "D:/save/pas/fbdataset".

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Bazaar because there has been no activity for 60 days.]

Changed in bzr:
status: Incomplete → Expired
Andrew Cowie (afcowie)
Changed in bzr:
status: Expired → New
Martin Pool (mbp)
tags: added: cmd-init foreign
Changed in bzr:
status: New → Confirmed
importance: Undecided → Medium
George Gill (ggilliii10)
description: updated
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
Jelmer Vernooij (jelmer)
tags: removed: 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.