You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Konstantin Kolinko <kn...@gmail.com> on 2012/01/16 05:04:42 UTC

[PATCH] repro-template.bat: Avoid three "File not found" errors when run for the first time

Hi!

When repro-template.bat [1] is run for the first time, it prints 3
error messages "File not found" (in the language of the OS).

Those error messages are caused by an attempt to unconditionally
delete the "repos", "wc" and "import-me" subdirectories, that do not
exist when the bat file is run for the first time.

The attached patch fixes this issue. It is to be applied to
https://svn.apache.org/repos/asf/subversion/site/publish

[1] http://subversion.apache.org/docs/community-guide/repro-template.bat

Best regards,
Konstantin Kolinko

[[[
Avoid three "File not found" messages from OS when repro-template.bat is
run for the first time and "repos", "wc" and "import-me" subdirectories do
not exist.

Patch by: Konstantin Kolinko <kn...@gmail.com>

* docs/community-guide/repro-template.bat: Check existence of subdirectories
  before trying to delete them.
]]]

[[[
Index: docs/community-guide/repro-template.bat
===================================================================
--- docs/community-guide/repro-template.bat	(revision 1231819)
+++ docs/community-guide/repro-template.bat	(working copy)
@@ -28,7 +28,9 @@
 echo Base url for repo: %URL%

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

 :prepareGreekTree
]]]

Re: [PATCH] repro-template.bat: Avoid three "File not found" errors when run for the first time

Posted by "C. Michael Pilato" <cm...@collab.net>.
On 01/15/2012 11:04 PM, Konstantin Kolinko wrote:
> Avoid three "File not found" messages from OS when repro-template.bat is
> run for the first time and "repos", "wc" and "import-me" subdirectories do
> not exist.
> 
> Patch by: Konstantin Kolinko <kn...@gmail.com>
> 
> * docs/community-guide/repro-template.bat: Check existence of subdirectories
>   before trying to delete them.

I ported this change to the shell script and committed both:
   Sending        repro-template.bat
   Sending        repro-template.sh
   Transmitting file data ..
   Committed revision 1231988.

Thanks.

-- 
C. Michael Pilato <cm...@collab.net>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand