[PATCH][SVNMERGE] Make error message more informative.
Daniel Rall
dlr at collab.net
Wed Apr 12 17:09:28 PDT 2006
On Wed, 12 Apr 2006, Madan S. wrote:
...
> [[[
> Make (multiple heads present)error message more informative.
>
> * contrib/client-side/svnmerge.py
> (get_default_head): Modified to make the error message
> more informative by listing the available heads.
> ]]]
> Index: contrib/client-side/svnmerge.py
> ===================================================================
> --- contrib/client-side/svnmerge.py (revision 19318)
> +++ contrib/client-side/svnmerge.py (working copy)
> @@ -765,8 +765,13 @@
> del props[directory]
>
> if len(props) > 1:
> - error('multiple heads found. '
> - 'Explicit head argument (-S/--head) required.')
> + err_msg = 'multiple heads found. '
> + err_msg += 'Explicit head argument (-S/--head) required.\n'
> + err_msg += 'The head values available are:'
> + repo_root = get_repo_root(branch_dir)
> + for prop in props:
> + err_msg += '\n ' + repo_root + prop
> + error(err_msg)
>
> return props.keys()[0]
Committed in r19338.
--
Daniel Rall
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
Url : /pipermail/svnmerge/attachments/20060412/ae259999/attachment.pgp
More information about the Svnmerge
mailing list