You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Sindbad the Seafarer <si...@gmx.net> on 2003/09/06 09:58:52 UTC

svn archive (or lsdblog etc.)

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.

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

     Another current catch-phrase is the complaint
     that the nations of the world are divided into 'haves' and the 'have-nots.'
     Observe that the 'haves' are those who have freedom,
     and that it is freedom that the 'have-nots' have not.
                -- Ayn Rand

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

Re: svn archive (or lsdblog etc.)

Posted by Sindbad the Seafarer <si...@gmx.net>.
Concerning Re: svn archive (or lsdblog etc.)
Max Bowsher wrote on 6 Sep 2003, 22:39, at least in part:

> Sindbad the Seafarer wrote:
> > 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.
> 
> Could you create shortcuts to the batch files, and add them to the
> toolbar?

Shortcuts can be added (still override the toolbar button, but that 
can be circumvented by setting the button.bmp as shortcut 
symbol. However, the button won't work. Looks like I have to 
become a programmer some day - I know that with CS-RCS this 
works for I based my SVN toolbar on one for CS-RCS.

BTW with the Windows port of xarg the lsdblogs command work as 
in the book (had to add Unix rm, too), zip also works smooth, 
mv/move not, but who needs it with rm & zip?! Many thanks for 
your help.

Jan Hendrik
> 
> Max.
> 


---------------------------------------
Freedom quote:

     You and I are told we must choose between a left or right,
     but I suggest there is no such thing as a left or right.
     There is only an up or down. Up to man's age-old dream --
     the maximum of individual freedom consistent with order --
     or down to the ant heap of totalitarianism.
     Regardless of their sincerity, their humanitarian motives,
     those who would sacrifice freedom for security
     have embarked on this downward path. Plutarch warned,
     'The real destroyer of the liberties of the people
     is he who spreads among them bounties, donations and benefits.'
                -- Ronald Reagan, October 27, 1964

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

Re: svn archive (or lsdblog etc.)

Posted by Max Bowsher <ma...@ukf.net>.
Sindbad the Seafarer wrote:
> 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.

Could you create shortcuts to the batch files, and add them to the toolbar?

Max.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: svn archive (or lsdblog etc.)

Posted by Sindbad the Seafarer <si...@gmx.net>.
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

Re: svn archive (or lsdblog etc.)

Posted by Max Bowsher <ma...@ukf.net>.
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


Max.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org