Mercurial > hg > buildtools
comparison hg2cl @ 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 |
comparison
equal
deleted
inserted
replaced
11:df9342cab0f0 | 12:e4d1a3aa1493 |
---|---|
111 ;; | 111 ;; |
112 esac | 112 esac |
113 done | 113 done |
114 | 114 |
115 # test for repository | 115 # test for repository |
116 if test ! -e ".hg"; then | 116 if ! hg log . 2> /dev/null; then |
117 echo "No Mercurial repository found from this directory." | 117 echo "No Mercurial repository found from this directory." |
118 exit 2 | 118 exit 2 |
119 fi | 119 fi |
120 | 120 |
121 # find the directory that this script resides in | 121 # find the directory that this script resides in |