changeset 32:4a989af8827f

Remove unused file.
author Oleksander Gavenko <gavenko_a@3g.ua>
date Mon, 03 Mar 2008 23:07:50 +0200
parents cae0fba14b8a
children 36d8e4e11e03
files hg/hgrepsync.bat
diffstat 1 files changed, 0 insertions(+), 80 deletions(-) [+]
line wrap: on
line diff
--- a/hg/hgrepsync.bat	Mon Mar 03 23:01:20 2008 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,80 +0,0 @@
-@echo off
-REM Copyright (C) 2008 by Oleksandr Gavenko <gavenko_a@3g.ua>
-
-REM Put this script in root of you store mercurila repsitory.
-REM It try to find repository in path that specified in %ROOT_REP_DIR%
-REM and synchronize content of repository if possible.
-REM
-REM If env var ROOT_REP_DIR not set, look to include %HOME%/.gav/hg-rep.bat.
-
-if "%ROOT_REP_DIR%" == "" (
-   if "%HOME%" == "" goto ERR_HOME_NOT_SET
-   if NOT EXIST %HOME%\nul goto ERR_HOME_INCORRECT_SET
-
-   REM This file contain path to repositories. There are placed ROOT_REP_DIR var.
-   set CONF_FILE=%HOME%\.gav\hg-rep.bat
-
-   if NOT EXIST %CONF_FILE% goto ERR_CONF_FILE_NOT_FOUND
-
-   call %CONF_FILE%
-)
-
-if "%ROOT_REP_DIR%" == "" goto ERR_ROOT_REP_DIR_NOT_SET
-if NOT EXIST %ROOT_REP_DIR%\nul goto ERR_ROOT_REP_DIR_NOT_SET
-
-hg --help 1>nul 2>nul
-if ERRORLEVEL 1 goto ERR_NO_HG
-
-set CURR_DIR=%~dp0
-
-for /D %%X in (%CURR_DIR%*) do (
-    pushd %%X
-
-    if EXIST %%X\.hg\nul (
-        set REP_NAME=%%~nX
-        set MY_REP_DIR=%%X
-        set YOUR_REP_DIR=%ROOT_REP_DIR%\%REP_NAME%
-
-        if EXIST %YOUR_REP_DIR%\nul (
-            echo %YOUR_REP_DIR%\nul
-
-            if EXIST %YOUR_REP_DIR%\.hg\nul (
-                echo %YOUR_REP_DIR%\.hg\nul
-
-                hg pull %YOUR_REP_DIR%
-                pushd %YOUR_REP_DIR%
-                hg pull %MY_REP_DIR%
-                popd
-            )
-        )
-    )
-    popd
-)
-
-goto EOF
-
-REM ==============
-REM Error message.
-REM ==============
-
-:ERR_HOME_NOT_SET
-echo You must set HOME env var.
-goto EOF
-
-:ERR_HOME_INCORRECT_SET
-echo Var HOME point for non existing dir %HOME%.
-goto EOF
-
-:ERR_CONF_FILE_NOT_FOUND
-echo hg-rep.bat in %HOME%\.gav not fount and env var ROOT_REP_DIR not set.
-goto EOF
-
-:ERR_ROOT_REP_DIR_NOT_SET
-echo ROOT_REP_DIR does not properly set as env var or in %HOME%\.gav\hg-rep.bat.
-goto EOF
-
-:ERR_NO_HG
-echo Mercurial utility not found. May be you forget install it or do not place path to it in PATH env var.
-goto EOF
-
-:EOF