[PATCH 2 of 9] context: factor out exception handling while looking changeid up

Matt Mackall mpm at selenic.com
Tue Mar 31 07:03:30 CDT 2015


On Mon, 2015-03-30 at 03:34 +0900, FUJIWARA Katsunori wrote:
> # HG changeset patch
> # User FUJIWARA Katsunori <foozy at lares.dti.ne.jp>
> # Date 1427653751 -32400
> #      Mon Mar 30 03:29:11 2015 +0900
> # Node ID 501346a6222d37bf0e841175ecde906d79673044
> # Parent  ea145f508b3df90b8393db3722a9fc9397c3354c
> context: factor out exception handling while looking changeid up

I'm not very excited about this. __init__ wants to be fast because it's
used everywhere. I've spent a fair amount of time optimizing this code
by inlining things and adding a function call to it is not great (though
surely less awful than the slowdown that snuck in with repoview).

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list