Catch the exception raised with 'hg help <somethingambiguous>'.
Example: 'hg help a'
removing bthis update spans a branch affecting the following files: baborting update spanning branches!(use update -m to merge across branches or -C to lose changes)