#! /bin/sh

set -xe
rm -rf /tmp/a /tmp/b
tla-export /tmp/a
rsync -a /tmp/a/ /tmp/b
tla changes --diffs | (cd /tmp/a && patch -R -p1 > /dev/null)
(cd /tmp && diff -uprN $* a b)
