Hi,

I'm just resurecting an old thread.

I've just changed "baz browse" to look a bit more like "baz abrowse".
As discussed in another thread, I think some of the decisions taken
are not relevant anymore since the namespace change is unlikely to
happen. No need to prepare a transition then.

A short demo:

# The category and branch are now displayed separately.
$ baz browse xtla | head
[EMAIL PROTECTED]
  xtla
    xtla--bazaar
      xtla--bazaar--0.9
        base-0 .. patch-29
    xtla--debian
      xtla--debian--0.1
        base-0 .. patch-5
    xtla--devo
      xtla--devo--0.1
# The match is exact on category--branch--version.
$ baz browse xtl
# --categories and --branches re-added
$ baz browse --branches xtla
[EMAIL PROTECTED]
  xtla
    xtla--bazaar
    xtla--debian
    xtla--devo
    xtla--main
# regexp match available, does a prefix match on the version name
$ baz browse --regex 'xtl.*1'
[EMAIL PROTECTED]
  xtla
    xtla--debian
      xtla--debian--0.1
        base-0 .. patch-5
    xtla--devo
      xtla--devo--0.1
        base-0 .. patch-116
      xtla--devo--1.1
        base-0 .. patch-117
      xtla--devo--1.2
        base-0 .. patch-58
    xtla--main
      xtla--main--0.1
        base-0 .. version-0
      xtla--main--1.0
        base-0 .. patch-1
      xtla--main--1.2
        base-0 .. patch-28
# regexp match works also on archive name
$ baz browse --regex '[EMAIL PROTECTED]/bazaar--devo'
[EMAIL PROTECTED]
  bazaar
    bazaar--devo
      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
        base-0 .. patch-71
      bazaar--devo--1.5
        base-0 .. patch-64

The performances for abrowse and browse are also comparable.

I've kept abrowse, it doesn't appear in "baz help", but I moved the
warning from the output of "abrowse" (in stderr) to the help text for
abrowse: Since there's no major change expected in Bazaar 1.x, there's
no real reason to deprecate abrowse anymore (I'm not opposed to
keeping a hard-to-maintain code if we don't have to make it evolve).
Since it doesn't appear in "baz help", it won't disturb the beginners.

'hope everybody is happy with this.

-- 
Matthieu


_______________________________________________
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/

Reply via email to