On Fri, 2005-07-29 at 17:31 +0200, Matthieu Moy wrote: > Do you like this: > > $ baz rbrowse '[EMAIL PROTECTED]/' > $ baz rbrowse '[EMAIL PROTECTED]/' | head > [EMAIL PROTECTED] > authinfo--main--0 > base-0 ... patch-2 > bazaar--a-test-for-file-history--1.5 > base-0 ... patch-2 > bazaar--abrowse-deprecated--1.5 > base-0 ... patch-1 > bazaar--archive-mirror--1.4 > base-0 ... patch-1 > bazaar--archive-mirror--1.5
That use case looks intuitive enough.
> $ baz rbrowse '[EMAIL PROTECTED]/bazaar'
> $ baz rbrowse '[EMAIL PROTECTED]/bazaar.*' | head
> [EMAIL PROTECTED]
> bazaar--a-test-for-file-history--1.5
> base-0 ... patch-2
> bazaar--abrowse-deprecated--1.5
> base-0 ... patch-1
> bazaar--archive-mirror--1.4
> base-0 ... patch-1
> bazaar--archive-mirror--1.5
> base-0 ... patch-4
> bazaar--archive-mirror-req--1.4
> $ baz rbrowse 'thelo.*/bazaar.*' | head
>
>
> [EMAIL PROTECTED]
> bazaar--devo--1.0
> base-0 ... patch-71
> bazaar--devo--1.1
> base-0 ... patch-122
> bazaar--devo--1.2
> base-0 ... patch-34
> bazaar--devo--1.3
> base-0 ... patch-76
> bazaar--devo--1.4
> $
This one bothers me a bit for a couple of reasons:
* The repetitive use of ".*"
* The fact that your regexp does not _really_ means what it
appears to mean, because "." still matches any single character.
At this point you could guess that I'm advocating the use of globs
instead of regexps by default.
I'm suggesting the switches
* "-S, --string" interpret the argument as a fixed string
* "-G, --glob" interpret the argument as a glob (default)
* "-R, --regex" interpret the argument as a regular expression
But I'm not a big user of [ar]browse, I'm using it mainly to remind me
what are the branches present in a given archive.
Generally, I like the "no implicit wildcard" approach, even though it
seems a bit cumbersome at first, as I expect it to be compatible with
the future branch directory that will take the place of the a/c-b-v
directory when namespace is decoupled from storage and identification.
Thanks for all your good work.
--
-- ddaa
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Gnu-arch-users mailing list [email protected] http://lists.gnu.org/mailman/listinfo/gnu-arch-users GNU arch home page: http://savannah.gnu.org/projects/gnu-arch/
