On Mon, May 11, 2009 at 9:11 AM,  <m...@fabiantriefenbach.de> wrote:
> Hello,
>
> I'm using a simple hook to lock down a repository on a server. I simply
> added the following config in the hgrc of the repo:
>
> [hooks]
> prechangegroup.locked = echo TEAM REPOSITORY IS LOCKED. please contact
> the release manager. && exit 1
>
> When I try to push to this repository over the command line i get the
> "TEAM REPOSITORY IS LOCKED. please contact the release manager "
> message and the push will abort.
>
> But in combination with tortoiseHG, the echo message will not be shown
> in the output window. I will only get the info:
>
> searching for changes
> 1 changesets found
>  *** prechangegroup.locked hook exited with status 1[command
> interrupted]
>
> which means the repository is locked, but the user has no idea why he
> can't push...
>
>
> Is it possible to write to the output windows of tortoiseHG? Maybe I
> need another command instead of echo?

In order to get the output into the THG synch dialog, you need to do a
ui.write(), which may be impossible from a hook on the server.  Hmmm,
this could potentially be improved.  In the web serve dialog we do
redirect stdout and stderr to the GUI, but it does make debugging that
tool challenging.  Perhaps we could do something similar for synch..
any takers for this?

--
Steve Borho

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Tortoisehg-discuss mailing list
Tortoisehg-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tortoisehg-discuss

Reply via email to