changeset 518:898a4139087d

Fix checks for hg repo existence.
author Oleksandr Gavenko <gavenkoa@gmail.com>
date Mon, 01 Oct 2012 09:55:28 +0300
parents 1745813fae0a
children 165b4348e037
files hg/hgsyncee hg/hgsyncew
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/hg/hgsyncee	Tue Sep 04 16:21:52 2012 +0300
+++ b/hg/hgsyncee	Mon Oct 01 09:55:28 2012 +0300
@@ -177,8 +177,8 @@
     MSG="'$dir' repo."
     PrintLog PROCESSING
 
-    if [ -d $HG_PUSH_DIR/$dir ]; then
-        if [ -d $HG_PULL_DIR/$dir ] ; then
+    if [ -d $HG_PUSH_DIR/$dir/.hg ]; then
+        if [ -d $HG_PULL_DIR/$dir/.hg ] ; then
             if CheckRepCompatibility $HG_PULL_DIR/$dir $HG_PUSH_DIR/$dir; then :
             else
                 MSG="It seems repositories $HG_PULL_DIR/$dir $HG_PUSH_DIR/$dir not compatable."
--- a/hg/hgsyncew	Tue Sep 04 16:21:52 2012 +0300
+++ b/hg/hgsyncew	Mon Oct 01 09:55:28 2012 +0300
@@ -176,7 +176,7 @@
     PrintLog PROCESSING
 
     if [ $HTTP_USED = no ]; then
-        if [ -d $HG_PUSH_DIR/$dir ]; then
+        if [ -d $HG_PUSH_DIR/$dir/.hg ]; then
             if CheckRepCompatibility ./$dir $HG_PUSH_DIR/$dir; then :
             else
                 MSG="It seems repo '$dir' and etalon repo not compatable."