Sun 17 Aug 2003 03:09:33 AM UTC, original submission:
(Taken from a wishlist against tla)
Hi,
ViewARCH doesn't access to TLA repo directly.
All operation are executed through related tla subcommands.
I think it's the right idea. Even if internal format
of tla repository will be changed, it can access
such new repo as well as old ones, as far as tla's
subcommand won't be changed.
On such premises, I'd like the following commands:
- On-the-fly patch file retrieving
Take a look at the following URL for example:
http://www.bluegate.org/cgi-bin/viewarch/viewarch.cgi/lord@emf.net--2003b/tla--devo--1.1--patch-125?cmd=diff&file=./libarch/cmd-ls-archives.c
The algorithm is:
1. make temp directory
2. 'tla get-patch' on it
3. retrieve the file that I want (in this case, 'cmd-ls-archives.c')
4. remove the temp directory
This sequence is simply awful. Can I get the following option ?
$ tla get-patch -O -A lord@emf.net--2003b tla--devo--1.1--patch-125 ./libarch/cmd-ls-archives.c
--- orig/libarch/cmd-ls-archives.c
+++ mod/libarch/cmd-ls-archives.c
@@ -18,7 +18,7 @@
-static t_uchar * usage = "[options] archive";
+static t_uchar * usage = "[options] [search regular expression]";
static t_uchar * version_string = (cfg__std__package " from regexps.com\n"
...
$
-O means 'stdout', and optional filename(./libarch/cmd-ls-archives.c) can be accepted.
- On-the-fly directory listing & file retrieving
When concerning the characteristic of tar + patch storage paradigma,
it may be very difficut, but ...
As many people noticed, ViewARCH can't browse file/directory.
Can I get the following commands ?
$ tla get -O --dir -A lord@emf.net--2003b tla--devo--1.1--patch-12 ./
F =THANKS
F =TODO
F COPYING
F ChangeLog
D ChangeLog.d
F Makefile.in
D PLUGIN
D libarch
D libawk
D libdate
D libfsutils
D libneon
D tests
D tla
D tutorial
D {arch}
$ tla get -O --dir -A lord@emf.net--2003b tla--devo--1.1--patch-12 ./tla
F Makefile.in
D PLUGIN
F tla.c
$ tla get -O --file -A lord@emf.net--2003b tla--devo--1.1--patch-12 ./libarch/cmd.c
/* cmd.c:
*
****************************************************************
* Copyright (C) 2003 Tom Lord
*
* See the file "COPYING" for further information about
* the copyright and warranty status of this work.
...
/* tag: Tom Lord Mon Jun 2 17:26:01 2003 (cmd.c)
*/
$
- Tez
|