[PATCH] introduce dotpath repositories (issue793)

Matt Mackall mpm at selenic.com
Tue Jun 17 14:06:34 CDT 2008


On Tue, 2008-06-17 at 20:45 +0200, Adrian Buehlmann wrote:
> On 17.06.2008 20:02, Matt Mackall wrote:
> > On Tue, 2008-06-17 at 19:35 +0200, Adrian Buehlmann wrote:
> >> "Making all the repo files apparently vanish for half the
> >> users doesn't seem like the best way to do that"
> >>
> >> That's a wrong description of what the patch does. They don't vanish.
> > 
> > $ touch .aux.c.i
> > $ ls
> > 
> >> "... there are numerous other dead simple alternatives that leave the
> >> names readable."
> >>
> >> No. There aren't.
> > 
> > $ touch 1aux.c.i
> > $ touch 2aux.c.i
> > ...
> > 
> 
> Ah, ok! Got your point now, apologies.
> 
> So what you want is to have the *file names* visible when doing a plain ls on unix
> inside .hg/store/data of such a new repo.
> 
> Yes. There sure are other alternatives to choose instead of a period char to prepend.
> It seems prepending nearly any valid filename char should do.
> 
> Do you have any specific preference?
> 
> I think "_" might be a nice candidate. _aux.i is fine on Windows.
> 
> And a better name instead of "dotpath" for the requires entry would be needed
> too ("upath"?). I don't have a good idea at the moment... Any suggestions?

I think we should revisit the whole problem when we have some notion of
what we're going to do with long pathnames (which may involve changing
our escaping scheme). There are lots of possibilities here (prefixes,
escaping reserved names, etc.) that I think we should basically consider
this a solved problem that's just waiting on a solution to the other
problem.

-- 
Mathematics is the supreme nostalgia of our time.



More information about the Mercurial-devel mailing list