REPOPATH=$(hg showconfig|sed -n 's/^bundle\.mainreporoot=//p')
Based on this, btw, I came up with the following hook in the hgrc
file:
[hooks] changegroup.bundlerepo = hg bundle -a $(hg showconfig|sed -n 's/^bundle\.mainreporoot=//p')/.hg/bundled.hg
The idea is to create a bundle with all revisions whenever a new group of changesets gets pushed to the repo.
// Oliver