"no repository present" error should suggest using bzr branch

Bug #45599 reported by Steve Alexander
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Wishlist
Unassigned

Bug Description

If I "cp -a" a branch that is part of a repository, I cannot use the resulting copy. I get an error about "no repository present".

This error should mention that if the branch was created by copying, to try using bzr branch instead.

Revision history for this message
John A Meinel (jameinel) wrote :

At present the error is:
bzr: ERROR: No repository present: 'file:///Users/jameinel/test-hgrep/'

Are you thinking to change that to:
bzr: ERROR: No repository present: 'file:///Users/jameinel/test-hgrep/'
This usually means a branch was moved or copied manually, rather than using 'bzr branch'.

Changed in bzr:
importance: Medium → Wishlist
status: Unconfirmed → Needs Info
Revision history for this message
Steve Alexander (stevea) wrote :

That explanation helps a lot, and would have avoided the confusion I had.

Revision history for this message
Aaron Bentley (abentley) wrote : Re: [Bug 45599] Re: "no repository present" error should suggest using bzr branch

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

John A Meinel wrote:
> At present the error is:
> bzr: ERROR: No repository present: 'file:///Users/jameinel/test-hgrep/'
>
> Are you thinking to change that to:
> bzr: ERROR: No repository present: 'file:///Users/jameinel/test-hgrep/'
> This usually means a branch was moved or copied manually, rather than using 'bzr branch'.

It would be nice if the message didn't imply that copying or moving
branches manually was *always* bad. (Moving or copying manually
*inside* the repo is encouraged.)

'This branch has no repository: "/Users/jameinel/test-hgrep". It may
have been moved or copied outside its repository manually, rather than
using "bzr branch".'

(You'll note that I refer to the branch; I'm thinking we should catch
NoRepositoryPresent and throw a customized message)

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGOzA90F+nu1YWqI0RAgYcAJ40Z8FKpc8aTucSQHGTAty0MiGXmACeLXTb
vMq7hbwtl7bVYmI0thEHNPE=
=PUzA
-----END PGP SIGNATURE-----

Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 45599] Re: "no repository present" error should suggest using bzr branch

On Fri, 2007-05-04 at 13:08 +0000, Aaron Bentley wrote:
>
> It would be nice if the message didn't imply that copying or moving
> branches manually was *always* bad. (Moving or copying manually
> *inside* the repo is encouraged.)

FWIW I dont tend to do or encourage this because it requires memorising
ones repo boundaries.

> 'This branch has no repository: "/Users/jameinel/test-hgrep". It may
> have been moved or copied outside its repository manually, rather than
> using "bzr branch".'

I like this message.

> (You'll note that I refer to the branch; I'm thinking we should catch
> NoRepositoryPresent and throw a customized message)

Yes, that sounds good to me.

-Rob

--
GPG key available at: <http://www.robertcollins.net/keys.txt>.

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

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

Revision history for this message
Steve Alexander (stevea) wrote :

Marking this confirmed, to reverse the auto-expire bot marking it invalid. I think it hasn't been worked on simply because everyone has been busy with other things.

Changed in bzr:
status: Invalid → Confirmed
Revision history for this message
ChriS (christophe-troestler) wrote :

I'd like to draw again the attention to this simple modification that could smooth the experience of users (scp is quite attractive in certain occasions, like when one is bitten by bug #123475).

Toon Nolten (toonn)
Changed in bzr:
status: Confirmed → In Progress
Toon Nolten (toonn)
Changed in bzr:
status: In Progress → Confirmed
Revision history for this message
linas (linasvepstas) wrote :

Still an issue. Had to move a bzr repo to re-organize a large directory. Now it doesn't work. I have no clue how to get it working again. Utterly confusing. Google knows nothing at all about this.

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.