exception with hook on external push

Patrick Mézard pmezard at gmail.com
Sun Nov 18 10:11:08 UTC 2007


Justin a écrit :
> I have a local and a remote repository, and on the remote repo, there is
> a hook:
> 
> [hooks]
> incoming = hg update -C
> 
> And when I pushed via ssh to this repository from my local repo, I got
> this error:

[...]

> ValueError: invalid literal for int() with base 10: '1 files updated, 0
> files merged, 0 files removed, 0 files unresolved\n'
> remote: adding changesets
> remote: adding manifests
> remote: adding file changes
> remote: added 1 changesets with 1 changes to 1 files

You have to redirect stdout somewhere else.

See "Any way to 'hg push' and have an automatic 'hg update' on the remote server?" in the FAQ <http://www.selenic.com/mercurial/wiki/index.cgi/FAQ>.

--
Patrick Mézard



More information about the Mercurial mailing list