Post-commit hook is not getting called for some commits

satheesh
satheesh
Hi,   We are using post-commit hook to copy the files from source to destination(source and destination are root folders of the repository).  folder . If property(property name : version) is applied on the any of the folder under the source , We called python script from the post-commit.bat to do the copy.   We are facing one issue while doing the copy , some of the folders are not copied from source to destination. We found the issue by doing the follwoing Step , In the beginning of the python script we are logged the revision number and changed path to the log file for every commit.  But for some two folders, there is no property set entry(revision number and changed path) in the log file.  (Plese note that In the post-commit.bat, we just called the python script ,nothing else).  When we tried at second time, the property entry of those two folders are available in the log file and files are successfully copied to the destination folder.  Is there any case for Post-Commit hook not getting called?

Last updated

andyl
andyl
Post-commit is always called.    Whether it actually does any work or not is dependent upon the logic in the script and the data/conditions it's encountering.    Every revision has a revision number and changed path.    Without seeing the script and the data, it's impossible to diagnose beyond that.

1-2 of 2

Reply to this discussion

You cannot edit posts or make replies: You should be logged in before you can post.