patch.py - bug and patch
Bartosz SKOWRON
getxsick at gmail.com
Mon Dec 8 19:00:12 CST 2008
On Sun, Dec 7, 2008 at 11:02 PM, Bartosz SKOWRON <getxsick at gmail.com> wrote:
> so i wrote some tests and patch as well. check attachment :)
Ok, I moved re.compile() outside the function and it makes the
function much faster, and unit tests are go in 0.000s now.
Also, I added some tests which failed, and the regexp is rewritten now
to fix it. I'm not sure if it's optimal, any objectives?
Also I added support for context's diff. I found somewhere in code
that this function is also being used for this case.
BTW. I can't understand why pydocs are really forgotten in general.
Check attachments:)
bart.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch_parsefname_bugfix.patch
Type: text/x-diff
Size: 1118 bytes
Desc: not available
Url : http://selenic.com/pipermail/mercurial-devel/attachments/20081209/ac8d5059/attachment.patch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_patch_parsefname.patch
Type: text/x-diff
Size: 1627 bytes
Desc: not available
Url : http://selenic.com/pipermail/mercurial-devel/attachments/20081209/ac8d5059/attachment-0001.patch
More information about the Mercurial-devel
mailing list