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

RE: [TSVN] Re: The Nightlies...

From: <Bill.Hughes_at_cgi-europe.com>
Date: 2005-05-20 14:56:46 CEST

Russell Hind wrote:
> Leeuw van der, Tim wrote:
>> Hi Russell,
>>
>> In my experience with batch files on dos/windoze, it's the
> difference in the way you invoke your bat scrip... if you
> invoke it with 'call' (I think, could be 'start' or 'run')
> the cmd.exe interpreter returns to your batch-script,
> afterwards. If you invoke it directly, the new bat script
> overwrites the old one and you never return.
>>
>
> Thanks, I'll have a go at this.
>
> The only good thing about the current method is that at least
> the build
> output is dumped to the server so that someone can try and
> work out why
> it failed.

Apologies if you already know this :-)
You can also redirect the error messages to a separate file if you need to
using '1' and '2' like on unix.
I schedule file1.cmd which contains the line
file2.cmd 1>log.txt 2>errors.txt
to sort the output into useful files.
Actually I use this to do my repo backups, and file2.cmd contains

move /y u:\svnbak\svndump_repo.exe u:\svnbak\prev
svnadmin dump d:\svn\repo > svndump_repo.dump
7z a -sfx -mx=9 svndump_repo.exe svndump_repo.dump
move svndump_repo.exe u:\svnbak
del svndump_*.dump

which keeps the previous dumped repo (if I was paranoid I wouldn't be using
tsvn),
dumps the repo (actually several)
create a .exe from the dump using 7zip
moves it to a network share.

The "Dumped revision" messages all go into errors.txt and the rest goes into
the other file.

HTH

Bill

-- 
       ___
  oo  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\     http://tortoisesvn.tigris.org
*** Confidentiality Notice *** Proprietary/Confidential
Information belonging to CGI Group Inc. and its affiliates
may be contained in this message. If you are not a recipient
indicated or intended in this message (or responsible for
delivery of this message to such person), or you think for
any reason that this message may have been addressed to you
in error, you may not use or copy or deliver this message
to anyone else.  In such case, you should destroy this
message and are asked to notify the sender by reply email.
Received on Fri May 20 15:00:29 2005

This is an archived mail posted to the TortoiseSVN Dev mailing list.

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