[Frugalware-darcs] vmexam: darcs2git: handle the case when there is a convert error but tailor exists with status code 0

VMiklos vmiklos at frugalware.org
Sun Jun 17 14:21:21 CEST 2007


Darcsweb-Url: http://darcs.frugalware.org/darcsweb/darcsweb.cgi?r=vmexam;a=darcs_commitdiff;h=20070617121905-e2957-44001cb84d37198690d238596b03c75c32bf649a.gz;

[darcs2git: handle the case when there is a convert error but tailor exists with status code 0
VMiklos <vmiklos at frugalware.org>**20070617121905] {
hunk ./darcs/darcs2git 84
-tailor --configfile config
-
-cd $target
-git clone $mygitroot $myname
+tailor --configfile config 2>&1 |tee tailor.log
+pending="$(grep 'pending changesets' tailor.log |sed -n 's/.* \([0-9]\+\) pending changesets .*/\1/;$ p')"
+if [ "$pending" == "0" ]; then
+	cd $target
+	git clone $mygitroot $myname
+else
+	echo "pendings changesets != 0 ($pending), convert failed"
+fi
}


More information about the Frugalware-darcs mailing list