OK, I've come up with a small bash script to get an 'id' which I can use
to detect changes in a repo.  Save the following to "fossilid" and make
it executable:

if [ ! -f "$1" ]
then
    echo "fossilid needs the name of the repository to 'id'"
    exit 1
fi

configsha=`fossil config export all -R $2 - | grep -v '^#' | fossil sha
- | cut -d' ' -f1`
logsha=`fossil timeline -n 10 -R $1 | fossil sha - | cut -d' ' -f1`

echo "$configsha $logsha"


_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to