Ability to provide feedback to the user for some operations
Created originally on Bitbucket by johnpeb (John Peberdy)
Users of the JavaHg should have the ability to provide feedback to the end user for some operations. For example:
- Tag already exists
- Branch name already exists
Currently an ExcecutionException is thrown for such operations. Its message contains a string from Mercurial including the prefix 'abort' and the return code. Ideally:
- Each command should document its expected errors. Potentially defining an enumeration of expected errors
- The message shouldn't include the return code or 'abort: '
- Nice to have: the message should be localized or localizable