cscg22-gearboy

CSCG 2022 Challenge 'Gearboy'
git clone https://git.sinitax.com/sinitax/cscg22-gearboy
Log | Files | Refs | sfeed.txt

showrev.sh (255B)


      1#!/bin/sh
      2#
      3# Print the current source revision, if available
      4
      5# FIXME: this prints the tip, which isn't useful if you're on a different
      6#  branch, or just not sync'd to the tip.
      7hg tip --template 'hg-{rev}:{node|short}' || (echo "hg-0:baadf00d"; exit 1)