In which Hg repo is the hook getting executed?

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

This entry was posted in EN, VCS and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *