What we did at UBZ
David Clymer
david at zettazebra.com
Sat Nov 19 06:30:19 GMT 2005
On Fri, 2005-11-18 at 17:04 +1100, Michael Ellerman wrote:
> On Fri, 18 Nov 2005 16:36, Matthew Hannigan wrote:
> > On Fri, Nov 18, 2005 at 03:40:26PM +1100, Michael Ellerman wrote:
> > > I realise we've decided that .bzr should become _,+=HERE_BE_DRAGONS=+,_,
> > > but I thought I'd just mention another reason why I like . files.
> > >
> > > They're not matched by * in my shell.
> > >
> > > Which means:
> > >
> > > # grep -R "foo" *
> > >
> > > does what you want. ie. it doesn't grep your revision history.
> >
> > Yeah, agreed, that is one reason to choose hidden files.
> >
> > Matching non _ is moderately easy in the standard shell:
> >
> > du -sh [^_]*
> > ls -d [^_]*
> > grep -R foo [^_]*
>
> Call me a fruit but I don't call that easy. :D It's not easy to type and it's
> requires a pretty solid understanding of the shell. I've been using *nix for
> a few years now and I don't often go around using character classes in
> command lines.
>
I agree. I must say that I _really_ dislike the idea of .bzr _not_ being
hidden. I don't have an reason to muck with the contents of .bzr, and
because of that, I don't want to have to know about it, and I certainly
don't want the opportunity to destroy my work with a careless rm -r *
The leading dot may make it slightly less obvious when browsing a
published tree, but is it not easy enough to stick an index.html that
redirects the viewer to .bzr or that includes a list of links to .bzr
directories of published branches? I think that such workarounds are
just as reasonable (moreso, even) as requiring contortions on the
command line.
Would it be possible to support both _bzr and .bzr? In other words, have
bzr use the first one it finds, perhaps adding a switch to bzr init to
allow the user to specify one or the other prefix. It could default to
_bzr on windows and .bzr on *nix.
-davidc
--
gpg-key: http://www.zettazebra.com/files/key.gpg
-------------- 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/20051119/1b8f3fa4/attachment.pgp
More information about the bazaar
mailing list