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

Re: repro-template script for Windows platforms

From: Paolo Compieta <paolocompieta_at_gmail.com>
Date: Sun, 1 May 2011 12:43:54 +0200

It did (see attached png), and i've got no error response (is there any
filter?).
Btw, I'm posting the content here, as plain text, hope it'll be useful.

Cheers,
Paolo

_______________________ file: repro-template.bat
____________________________

@echo off
rem
##############################################################################
rem
##
##
rem ## This is a template for writing Subversion bug reproduction
scripts. ##
rem
##
##
rem ## It creates a repository containing the standard Greek Tree
(see ##
rem ##
http://svn.collab.net/repos/svn/trunk/subversion/tests/greek-tree.txt) ##
rem ## and checks out a working copy containing that tree. Please
adjust ##
rem ## this script however you need to to demonstrate your bug. When
it's ##
rem ## ready, post the bug report to dev_at_subversion.apache.org --
after ##
rem ##
http://subversion.apache.org/docs/community-guide/issues.html#reporting-bugs,
##
rem ## of
course. ##
rem
##
##
rem ## Author: paolocompieta_at_gmail.com
##
rem
##############################################################################

:defineCommands
rem You might need to adjust these lines to point to your
rem compiled-from-source Subversion binaries, if using those:
for %%i in (svn.exe) do set SVN="%%~$PATH:i"
for %%i in (svnadmin.exe) do set SVNADMIN="%%~$PATH:i"

:defineUrls
rem Only supported access method: file://. If http:// or svn://, then
rem you'll have to configure it yourself first.
set URL=file:///%CD%/repos
set URL=%URL:\=/%
echo Base url for repo: %URL%

:cleanAllDirsAndCreateRepo
rmdir /s /q repos wc import-me
%SVNADMIN% create repos

:prepareGreekTree
echo Making a Greek Tree for import...
mkdir import-me
mkdir import-me\trunk
mkdir import-me\tags
mkdir import-me\branches
mkdir import-me\trunk\A
mkdir import-me\trunk\A\B\
mkdir import-me\trunk\A\C\
mkdir import-me\trunk\A\D\
mkdir import-me\trunk\A\B\E\
mkdir import-me\trunk\A\B\F\
mkdir import-me\trunk\A\D\G\
mkdir import-me\trunk\A\D\H\
echo This is the file 'iota'. > import-me\trunk\iota
echo This is the file 'A\mu'. > import-me\trunk\A\mu
echo This is the file 'A\B\lambda'. > import-me\trunk\A\B\lambda
echo This is the file 'A\B\E\alpha'. > import-me\trunk\A\B\E\alpha
echo This is the file 'A\B\E\beta'. > import-me\trunk\A\B\E\beta
echo This is the file 'A\D\gamma'. > import-me\trunk\A\D\gamma
echo This is the file 'A\D\G\pi'. > import-me\trunk\A\D\G\pi
echo This is the file 'A\D\G\rho'. > import-me\trunk\A\D\G\rho
echo This is the file 'A\D\G\tau'. > import-me\trunk\A\D\G\tau
echo This is the file 'A\D\H\chi'. > import-me\trunk\A\D\H\chi
echo This is the file 'A\D\H\omega'. > import-me\trunk\A\D\H\omega
echo This is the file 'A\D\H\psi'. > import-me\trunk\A\D\H\psi
echo Importing it...
cd import-me
%SVN% import -q -m "Initial import." %URL%
cd ..

:checkoutTrunk
echo Checking out working copy..
%SVN% co -q %URL%/trunk wc
rem This is where your reproduction recipe goes.
rem [some stuff]
goto :eof
_______________________ end of file: repro-template.bat
______________________

On Sat, Apr 30, 2011 at 9:47 PM, Hyrum K Wright <hyrum_at_hyrumwright.org>wrote:

> The mail didn't have any attachments.
>
> On Sat, Apr 30, 2011 at 11:15 AM, Paolo Compieta
> <paolocompieta_at_gmail.com> wrote:
> > Hi all,
> > wrt the
> > "we'd welcome the contribution of a similar template script for Win"
> > in the
> >
> http://subversion.apache.org/docs/community-guide/issues.html#reporting-bugs
> > page, i'm attaching the Win template (.bat): run & tested on Windows7.
> >
> > It's missing the "svnserve" part and the kill-svnserver part (didnt
> > know if it was useful) but it's been sufficient to create the Greek
> > Tree and reproduce my case - hope it'll be useful to others as well.
> > It handles urls (for file:// protocol) and slashes correctly, and also
> > svn/svnadmin executables' paths retrieval using the "where"
> > command. Just add the .bat suffix to execute it.
> >
> > Cheers,
> > Paolo Compieta
> >
>
Received on 2011-05-01 12:44:26 CEST

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

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