a hook for pushing to a second repository after default push has completed
Faheem Mitha
faheem at email.unc.edu
Thu Jul 9 14:54:36 CDT 2009
Ok, I think I see the problem. The hook is trying to run itself within
itself, since
hg push local
also activates the hook, but it is failing to complete since since both
invocations are pushing to same repos. Ok, back to the drawing board...
Regards, Faheem.
On Thu, 9 Jul 2009, Faheem Mitha wrote:
>
> Hi,
>
> I want to push to a second repository (the 'local' url below) after pushing
> to a default 'remote' url. I'm trying to use the 'outgoing' hook, based on
> http://hgbook.red-bean.com/read/handling-repository-events-with-hooks.html.
> However, this get hung up on a lock. Can someone please diagnose this for me
> and suggest a solution?
>
> Please copy me on any reply.
> Regards, Faheem.
>
> **************************************************************
>
> [paths]
> default = ssh://remote//data/hg/faheem/django/bixfile_wsgi
> local = /srv/hg/faheem/django/bixfile_wsgi
>
> [hooks]
> outgoing = hg push local
>
> ************************************************************************
>
> faheem at local:/usr/local/lib/python2.5/site-packages/bixfile_wsgi$ hg pus
> pushing to ssh://remote//data/hg/faheem/django/bixfile_wsgi
> searching for changes
> pushing to /srv/hg/faheem/django/bixfile_wsgi
> searching for changes
> adding changesets
> pushing to /srv/hg/faheem/django/bixfile_wsgi
> waiting for lock on repository /srv/hg/faheem/django/bixfile_wsgi held by
> 'local:25963'
> abort: repository /srv/hg/faheem/django/bixfile_wsgi: timed out waiting for
> lock held by local:25963
> warning: outgoing hook exited with status 255
> adding manifests
> adding file changes
> added 3 changesets with 3 changes to 1 files
> remote: adding changesets
> remote: adding manifests
> remote: adding file changes
> remote: added 27 changesets with 27 changes to 8 files
>
> **********************************************************************
>
> faheem at local:/srv/hg/faheem/django/bixfile_wsgi$ ps aux | grep 25963
> faheem 25963 0.6 0.0 59272 9904 pts/24 S+ 15:06 0:00
> /usr/bin/python2.5 /usr/bin/hg push local
>
More information about the Mercurial
mailing list