Reputation: 6832
I'm aware of this answer and maybe there is no solution to my problem in the end anyway. However, what I want to achieve is this:
Whenever a changeset for a repo on my server is incoming, I want to perform some custom tasks. I added a hooks
section to hgweb.config
:
[hooks]
changegroup = printenv > /tmp/test/env.txt
From the info that printenv
gives me I see that I'm able to extract my unique identifier for the repo, but not the name of project! I do need the name of the repo's root folder for an API call. Is there any way I can get this information?
Upvotes: 2
Views: 696
Reputation: 6044
hg root
gives you the directory the repository resides in.
However there is no "unique name" or anything like that - it's simply the name of the directory and it can be changed by a simple rename command on file system level.
Upvotes: 2