[hooks]
precommit = hg pull; hg up
postcommit= hg push
post-pull = hg up
However, this doesn't work. precommit freezes with the error
waiting for lock on working directory of [dir] held by [procnum]
and pre-commit results in other errors:
running hook pre-commit: hg pull; hg up
pulling from [source]
searching for changes
no changes found
running hook post-pull: hg up
abort: outstanding uncommitted merges
warning: post-pull hook exited with status 255
abort: outstanding uncommitted merges
warning: pre-commit hook exited with status 255
AG
1 comment:
This is how I did it:
pre-commit.pull_from_server = hg pull -u http://repos.yourdomain.com/beta_domain_com
pre-commit.pull_from_other = hg pull -u http://other-pc.yourdomain.com/beta_domain_com
I read somewhere on the internet that you have to use pre-commit and not precommit.
Regards
Andrew
Post a Comment