[Svnmerge] [PATCH] Prompt for source branch when multiple sourcesexist

Jim Lawton jim.lawton at gmail.com
Tue Mar 28 03:16:59 PST 2006


On 3/28/06, Giovanni Bajo <rasky at develer.com> wrote:
> I see by code inspection that there is a bug: if the user types a letter,
> the int() call will raise a ValueError. You can use input.isdigit() to check
> if the input string is made of digits only (but that would reject strings
> like "1   ": not sure if we should care). Otherwise, just catch the
> exception:

> Can you please test the above code?

Thanks for that Giovanni. Sorry about the rusty Python!
Updated patch attached.

/regards/jim
-------------- next part --------------
A non-text attachment was scrubbed...
Name: multiple_sources_prompt3.patch
Type: text/x-patch
Size: 2342 bytes
Desc: not available
Url : /pipermail/svnmerge/attachments/20060328/93fc135e/attachment.bin 


More information about the Svnmerge mailing list