[PATCH 1 of 3 stable] util.url: add an 'islocal' method

Matt Mackall mpm at selenic.com
Mon Feb 3 17:24:35 CST 2014


On Mon, 2014-02-03 at 15:21 -0800, Siddharth Agarwal wrote:
> On 02/03/2014 03:12 PM, Siddharth Agarwal wrote:
> > # HG changeset patch
> > # User Siddharth Agarwal <sid0 at fb.com>
> > # Date 1391467661 28800
> > #      Mon Feb 03 14:47:41 2014 -0800
> > # Branch stable
> > # Node ID 8ab8a85a22c2f5a0e23e86f2041ef7d348fab857
> > # Parent  9139dedeffa6d54367fcf410d583d401e8fd1318
> > util.url: add an 'islocal' method
> >
> > This returns True if the URL represents a path that can be opened locally,
> > without needing to go through the entire URL open mechanism.
> 
> Of course, this now raises the question whether url.open should do this 
> detection. Is it ever desirable for url.open to not use posixfile directly?

Not that I know of.. sounds like a good follow-up.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list