# HG changeset patch # User Christophe Lincoln # Date 1306587781 -7200 # Node ID 6b819745d7dac0b8b64794c5ee519c165fe0a2ee # Parent b8d3c7050b6357183e8cd83e537858df83357ca6 cook: Add Godane patch to handle Hg branch diff -r b8d3c7050b63 -r 6b819745d7da cook --- a/cook Sat May 28 15:00:17 2011 +0200 +++ b/cook Sat May 28 15:03:01 2011 +0200 @@ -217,7 +217,13 @@ gettext -e "Getting source from Hg...\n" echo "URL: $url" gettext "Cloning to: "; echo "$pwd/$pkgsrc" - hg clone $url $pkgsrc || (echo "ERROR: hg clone $url" && exit 1) + if [ "$BRANCH" ]; then + echo "Hg branch: $BRANCH" + hg clone $url --rev $BRANCH $pkgsrc || \ + (echo "ERROR: hg clone $url --rev $BRANCH" && exit 1) + else + hg clone $url $pkgsrc || (echo "ERROR: hg clone $url" && exit 1) + fi create_tarball ;; git*) url=${WGET_URL#git|}