changeset 12:e4d1a3aa1493

Different check for existence of Mercurial repository.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 15 Jan 2011 07:55:55 +0200
parents df9342cab0f0
children 25d3461d9f2f
files hg2cl
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hg2cl	Sat Jan 15 04:47:08 2011 +0200
+++ b/hg2cl	Sat Jan 15 07:55:55 2011 +0200
@@ -113,7 +113,7 @@
 done
 
 # test for repository
-if test ! -e ".hg"; then
+if ! hg log . 2> /dev/null; then
 	echo "No Mercurial repository found from this directory."
 	exit 2
 fi