diff --git a/contrib/churn.py b/hgext/churn.py rename from contrib/churn.py rename to hgext/churn.py diff --git a/tests/test-churn b/tests/test-churn new file mode 100755 --- /dev/null +++ b/tests/test-churn @@ -0,0 +1,31 @@ +#!/bin/sh + +echo "[extensions]" >> $HGRCPATH +echo "churn=" >> $HGRCPATH + +echo % create test repository +hg init repo +cd repo +echo a > a +hg ci -Am adda -u user1 +echo b >> a +echo b > b +hg ci -Am addb -u user2 +echo c >> a +echo c >> b +echo c > c +hg ci -Am addc -u user3 + +echo % churn all +hg churn +echo % churn up to rev 1 +hg churn -r :1 +echo % churn with aliases +cat > ../aliases <