gnu-arch-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnu-arch-users] Re: Obsoleting abrowse


From: David Allouche
Subject: Re: [Gnu-arch-users] Re: Obsoleting abrowse
Date: Sat, 30 Jul 2005 20:00:19 +0200

On Sat, 2005-07-30 at 12:49 +0200, Matthieu Moy wrote:
> # By default, no regexp.
> $ baz rbrowse Matthieu.Moy/
> Cannot connect to archive Matthieu.Moy.

Nice. What about glob by default?

> # Exact match on archive
> $ baz rbrowse address@hidden/ | head
> address@hidden
>   authinfo--main--0
>     base-0 ... patch-2
[...]

Cool.

> # Regexp matching. The regexp must match the full string.
> $ baz rbrowse --id-regex address@hidden/ 

Why not just call it "--regex"?

> # You can explicitely ask for substring with ".*"
> $ baz rbrowse --id-regex 'address@hidden/' | head              
> address@hidden
>   authinfo--main--0
>     base-0 ... patch-2

Glob?

> # LIMIT must match a prefix. Not necessarily the full string.
> $ baz rbrowse --id-regex 'address@hidden/bazaar' | head                       
>                                                                     
> address@hidden
>   bazaar--a-test-for-file-history--1.5
>     base-0 ... patch-2
[...]
> # You can ask for full string with "$"
> $ baz rbrowse --id-regex 'address@hidden/bazaar$' | head                      
>                                                                     

I would prefer a full match, as that would be more consistent with the
syntax that could be used in arguments of comands that can take several
branch names or globs/regexps.

> # exact match also matches prefix.
> $ baz rbrowse 'address@hidden/bazaar' | head                                  
>                                                                   
> address@hidden

That would not be consistent with the syntax used in commands that can
accept several commands. I regard "browse" essentially as a "ls" in the
branch directory.

> # ... but not arbitrary substring
> $ baz rbrowse 'address@hidden/zaar' | head

Cool.

-- 
                                                            -- ddaa

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

[Prev in Thread] Current Thread [Next in Thread]