Hi,
the action Mercurial Commit fails if there are no local changes. The reason is that HG returns with the exit code “1” but the FinalBuilder expects “0”.
IMO, the action should only fail for exit codes > “1”.
–
Thanks,
Roman
Mercurial is a bit inconsistent with it’s return codes, it uses the same return code for many different things, for example pretty much all errors return 255… makes it hard to handle spe cific issues. I have seen other things return 1 as well. I’ll take a look at this and get back to you
What do you think about the possibility to assign the return code to a variable?
I have added an option to not fail when there are no changes. Also, you can access the returncode in the AfterAction script event, eg. :
FBVariables.MYVARIABLE = Action.PropertyStore.ReturnCode;
http://downloads.finalbuilder.com/downloads/finalbuilder/700/FB700_1983.exe
Hi Vincent,
I used the new option not to fail if there are no changes and it does work as expected!
–
Thanks,
Roman