Hi,
I'm pushing to remote https repository. My commit is blocked by remote hook.
But status message (above history window) is green. It says "Puth to
https://... aborted, ret 1".
How can I make it red? I can change both local and remote settings and
hooks.
If I rise an exception then message is red, but it is meanless "HTTP Error:
500 (Internal Server Error)" without any hook output in log.
Test hook code:
def pretxnchangegroup(ui, repo, node, **kwargs):
ui.write("Error\n")
ui.warn("2nd\n")
ui.status("Failed\n")
#raise Exception("Error\n")
return True
Local output:
pushing to https://...
searching for changes
remote: adding changesets
remote: adding manifests
remote: adding file changes
remote: added 1 changesets with 0 changes to 0 files
remote: Error
remote: 2nd
remote: Failed
remote: transaction abort!
remote: rollback completed
remote: abort: pretxnchangegroup hook failed
TortoiseHg 2.2.1 with Mercurial 2.0.1
Also tested on: TortoiseHg 2.3+2-5c3390659440 with Mercurial-2.1
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Tortoisehg-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tortoisehg-discuss