[PATCH 0 of 1 V2] checking for portable filenames

Matt Mackall mpm at selenic.com
Mon Apr 18 21:21:19 CDT 2011


On Mon, 2011-04-18 at 09:56 +0200, Adrian Buehlmann wrote:
> On 2011-04-18 03:22, Augie Fackler wrote:
> > On Apr 16, 2011, at 3:25 PM, Adrian Buehlmann wrote:
> >>
> >> Desperately trying to rescue this piece of work by introducing a
> >>
> >>  ** new module hgutil.py **
> >>
> >> Does this have a snowballs chance in layering violation hell?
> > 
> > Eep. I'd rather not have util and hgutil in hg - it's not an uncommon pattern in extensions to do
> > 
> > from mercurial import util as hgutil
> > 
> > and this would make that a nightmare. Can we come up with a better name for the module? pathutil perhaps?

I'm not terribly sympathetic to this problem. The obvious solution is:

 from mercurial import hgutil as hghgutil

..or whatever. But yeah, it's not perfect.

> I see. Hmm.
> 
> pathutil would work for me, but it sounds a bit narrow-ish.
> 
> Names are difficult...
> 
> scmutil
> coreutil
>   cutil ?

scmutil is okish.

By the way, people interested in the layering issues should look at
this:

http://www.selenic.com/blog/?p=626

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list