[MERGE] make init-repo use '.' as default location
Robert Collins
robertc at robertcollins.net
Sat Jul 12 08:37:16 BST 2008
On Sat, 2008-07-12 at 08:50 +0200, Marius Kruger wrote:
> 2008/7/11 James Westby <jw+debian at jameswestby.net>:
> On Wed, 2008-07-09 at 22:24 -0600, Scott Scriven wrote:
> > This is a fix for bug 247150. It makes 'bzr init-repo' work
> in a
> > fresh directory. Otherwise, this happens:
> >
> > % mkdir foo ; cd foo
> > % bzr.dev init-repo
> > bzr: ERROR: command 'init-repository' requires argument
> LOCATION
>
>
> I asked about this behaviour not too long ago, and John said
> it
> was intentional, as a kind of safety catch. Accidentally
> setting
> up a shared repository can lead to your data not being stored
> where you thought it was, which could be disastorous.
>
> However, I don't know if that's a big enough concern to force
> the inconsistency with "init" here.
>
> I think this will be good (to be consistent with init).
> And its not much of a disaster if your new branches are configured
> to use a shared repository, since we now have the `reconfigure`
> command which will make recovery very easy. (I see the reconfigure
> help needs some love, as it took me a while to figure out how to use
> it )
init-repo can affect existing branches:
bzr init-repo foo
mkdir foo/bar
bzr branch SOMETHING foo/bar/baz
bzr init-repo foo/bar
bzr check foo/bar/baz
-Rob
--
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20080712/1fe2778a/attachment.pgp
More information about the bazaar
mailing list