On Monday, November 25, 2002, at 10:49 AM, Karl Fogel wrote:
> David Mankin <mankin@ants.com> writes:
>> Comments, anyone? (Beyond "CollabNet people don't have time to
>> implement this pre 1.0" -- if people are interested, I'll see about
>> trying to code it. I haven't looked at the implementation, but I
>> don't imagine it will be *too* hard.)
>
> Nice solution!
>
> +1 overall. There are a few tweaks I'd make to the help text, but
> whatever. The change seems like a clean, general solution to both
> aliasing and scripting.
Thanks. Now that I have a some external approval, I'll point out
another possible implementation of the alias setup.
Imagine a ~/.subversion/clients/svn/aliases file:
[dif]
shortcut_for = diff
[diff]
command = diff
extra_args = -x'-uN'
applies_to = http://localhost:8080/repos1/*, file:///path/to/repos1/*,
http://svn.collab.net/repos/svn/*
[diff]
command = diff
extra_args = -x'-c5'
[tag]
variants=tag.1, tag.2
help_text = tag: Create a tag in the repository.\n
usage: svn tag TAG_NAME [SRC]\n\n
If SRC is specified then only that directory (and its children) will
be tagged.\n
Valid options:\n
-m [--message] arg : specify commit messge "ARG"\n
-F [--file] arg : specify commit message from file ARG\n
etc.
[tag.1]
commandline = $SVN $-* cp $REPOS_URL/trunk $REPOS_URL/tags/$1
[tag.2]
commandline = $SVN $-* cp $REPOS_URL/trunk/$2 $REPOS_URL/tags/$1
---------------------
This is much more complicated, much less clean (it could be cleaned up
a lot, though, I'm sure), and provides a little bit more functionality.
What it does do is allow some form of per-repository aliasing. And a
little easier to understand setting the help text, and some more power
in handling different numbers of command line parameters.
Would people prefer a one-section-per-alias or a
one-or-two-line-per-alias configuration like in my previous email?
-David Mankin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Nov 25 21:20:19 2002