[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: status of symbolic names for revision numbers..

From: Tim Hill <tim_at_realmsys.com>
Date: 2005-04-22 19:49:22 CEST

In windows, if you want to be REALLY lazy, you can use the DOSKEY
command to even better effect (ok, get over the command name!) as follows:

DOSKEY sv=svn $1 svn://server/repo/$2 $3 $4 $5 $6 $7 $8 $9

(Edit the URL above as necessary)

After you enter this, try:


to get a list of the repository. Now *that's* lazy! Of course, the SV
shortcut only works where the first argument after the sub-command is
the repo, but that covers a lot of commands...

...and you can create a command prompt window that automatically sets
this command (just edit the command prompt shortcut to add the /K switch
and the above). You can even have a different command prompt for each

Andrew Thompson wrote:

> Jack O'Quin wrote:
>> Eitan Suez <eitan-keyword-deux.352d02@u2d.com> writes:
>>> the main issue i'm trying to address is laziness on my
>>> part: i don't like typing urls. typing urls take me too long,
>>> and i always make typographical errors with urls. then i
>>> get irritated that i have to re-issue the command.
>> Just define a short environment variable in your ~/.profile to
>> minimize the typing. Something like...
>> export R="svn+ssh://svn.host.example/path/to/repository"
>> Then you can type...
>> $ svn cp -r4432 $R/trunk $R/tags/tagname -m "Tagging rev 4432"
> I do basically the same thing on my Windows machines: Rightclick on My
> Computer, Click Properties. (On Win2k:) Click Advanced. Click
> Environment Variables. Choose if you're defining it for you or for any
> users of the PC. Just you, click the top New... button. For others,
> click the bottom New... button. Type a short name or letter as Jack
> showed, and type in (or paste in ;) you're repository url. OK until
> all the windows go away.
> New command windows will see your environment variable as %VARNAME%
> Usage: svn list %SVNAKT%/project/trunk

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Apr 22 19:51:37 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.