# HG changeset patch # User Matti Hamalainen # Date 1295070955 -7200 # Node ID e4d1a3aa1493ae8e76f0e96a535b36490039409a # Parent df9342cab0f07f0388dc8f6d254a1be3b7d1f593 Different check for existence of Mercurial repository. diff -r df9342cab0f0 -r e4d1a3aa1493 hg2cl --- 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