[PATCH] Allow hg.parseurl(url, None)
Martin Geisler
mg at lazybytes.net
Sun Apr 26 15:21:03 UTC 2009
Martijn Pieters <mj at zopatista.com> writes:
> # HG changeset patch
> # User Martijn Pieters <mj at zopatista.com>
> # Date 1240589862 -7200
> # Node ID 30b340661226e4610369817f689a090662125848
> # Parent ddbee2d0d634b67d7f6ebea405398c171bbf3a8a
> Allow hg.parseurl(url, None)
>
> In many places hg.parseurl is called with a url and "opts.get('rev')",
> suggesting the second, optional argument can be None. Because
> opts['rev'] usually defaults to [] this never happens in practice.
>
> However, extensions don't necessarily behave the same, but do copy
> this pattern.
Sounds good -- I've added a 'hg: ' prefix to the commit message and
pushed it to crew as 29bc5d18714a, thanks!
--
Martin Geisler
VIFF (Virtual Ideal Functionality Framework) brings easy and efficient
SMPC (Secure Multiparty Computation) to Python. See: http://viff.dk/.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-devel/attachments/20090426/fd993440/attachment.asc>
More information about the Mercurial-devel
mailing list