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

Re: svn archive (or lsdblog etc.)

From: Sindbad the Seafarer <sindbad.the.seafarer_at_gmx.net>
Date: 2003-09-06 23:15:22 CEST

Concerning Re: svn archive (or lsdblog etc.)
Max Bowsher wrote on 6 Sep 2003, 11:06, at least in part:

> Sindbad the Seafarer wrote:
> > Hi all out there!
> >
> > I have the same or similar problem with What to do with the log
> > files and
> svn
> > archive/lsdblogs/etc. The help file example does not say anything
> practical to
> > me except listing all unused logs. But how can I deal with them
> > under Win2000? E.g. move them to a ZIP file or another folder or
> > delete them?
> Have I
> > to print the list and then move them manually, file by file? I tried
> > to
> pipe
> > svn archive output to move and copy command, but with no success.
> >
> > $ svnadmin archive /path/to/repos | xargs rm
> > ## disk space reclaimed!
> >
> > What is xargs? Is it a common Unix command? Is it SVN parameters?
> > W2K says unknown command.
>
> xargs is a common Unix command, as is rm.
>
> You could probably do something similar with the "Command Extensions"
> of cmd.exe
>
> Type "help for" at a cmd.exe prompt. You will probably be able to put
> together a command a bit like this UNTESTED UNTESTED UNTESTED example:
> for /F "delims=" %i IN ('svnadmin list-unused-dblogs repos') DO del %i

Many thanks, Max. This worked great, only did "move %i d:\folder"
instead of del to begin with, so I could undo things. Is a test repos
anyway.

Of course the Unix command line is much more elegant and now
knowing that xargs is a command I searched for a Windows port
and will try it next time.

Though not unfamiliar with the command line I did not know the
FOR command and its many options. Have you something more of
this kind in your hat? ;-) I am still looking for a way to redirect svn
output to a dialog window (or notepad) so I can set up an SVN
toolbar in the HTML editor and get e.g. status or log, but also add
or commit messages shown. So far I only get a black flash of the
DOS window. A batch file works in that the output is shown in
notepad, but due to a bug in Homesite all the toolbar buttons are
replaced by the CMD icon then, so zero usability. I have no
programming experience, so I can't just do a little Python or C ...

Cheers!

Jan Hendrik
---------------------------------------
Freedom quote:

     The government's view of the economy
     can be summed up in a few short phrases:
     If it moves, tax it. If it keeps moving, regulate it.
     And if it stops moving, subsidize it.
                -- Ronald Reagan

---------------------------------------
Mailed with Pegasus Mail 3.12c (32bit).
Never heard of it?
Easy to use, full featured - and freely available.
And *no* automatic virus activation and spreading.
Take a look at http://www.pmail.com
Give it a try - and you'll never miss anything else.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Sep 6 23:19:41 2003

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.