I'm coding a script to check syntax of repository files.
So, I added to my .hgrc file this line :
precommit = python ~/tools/check_syntax.py
But I want get the path of repository in which I try to commit from check_syntax.py file.
Do you know a way to do that ?