[PATCH 0 of 1 RFC] revset: overload + symbol for workingdir revision

Matt Mackall mpm at selenic.com
Sun May 1 05:04:53 CDT 2011


On Sun, 2011-05-01 at 18:51 +0900, Yuya Nishihara wrote:
> Matt Mackall wrote:
> > On Sun, 2011-05-01 at 17:57 +0900, Yuya Nishihara wrote:
> > > Hi,
> > > 
> > > Is this obfuscating than useful?
> > 
> > '+' is probably too magical now that we've used it in revsets. We
> > probably need a short symbolic name.
> 
> Hmm, according to this thread:
> http://thread.gmane.org/gmane.comp.version-control.mercurial.devel/31306/focus=31361
> 'wdir' or 'dir' is the candidate.
> 
> Should it handled at localrepo like 'null' or 'tip'?
> or upper layer?

Off the top of my head, I think we should handle it localrepo.lookup(),
and then teach revsets to represent it as None or similar.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list