Crazy idea of the day: the '+' revision
Thomas Arendsen Hein
thomas at intevation.de
Mon May 24 03:12:31 CDT 2010
* Christian Boos <cboos at neuf.fr> [20100524 09:47]:
> On 5/24/2010 12:23 AM, Martin Geisler wrote:
>> Matt Mackall<mpm at selenic.com> writes:
>>> Right now we've got a '.' revision that refers to the parent of the
>>> working directory. Very handy. But we've got no way to refer to the
>>> revision in the working directory. Internally, we can use repo[None] to
>>> get a working context, but there's no way to refer to it except
>>> implicitly on the command line. So I'm proposing adding a magical '+'
>>> revision for that purpose.
>>
>> My initial reaction to this was: "oh no, let's not add more 'line noise'
>> to Mercurial." But after thinking about it again, then perhaps this
>> isn't as bad.
>>
>> I do like Nicolas' suggestion of 'wdir' better, though since I think
>> it's clearer.
>
> '+' seems clear enough, once you know the rationale behind it (and then,
> 'hg help +' should tell something about it!); if there should be a plain
> text alias for '+', then I'd prefer 'dir' instead of 'wdir', as it bears
> more symmetry with 'tip' (3 letters, pronounceable).
I'd prefer '+', too.
If there should be a longer name, it should start with "work", e.g.
"workdir" or "workingdir", because "dir" alone is too generic and
the "w" in "wdir" is not meaningful enough.
I would not recommend adding both, '+' and a longer name.
Regards,
Thomas
--
thomas at intevation.de - http://intevation.de/~thomas/ - OpenPGP key: 0x5816791A
Intevation GmbH, Neuer Graben 17, 49074 Osnabrueck - AG Osnabrueck, HR B 18998
Geschaeftsfuehrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner
More information about the Mercurial-devel
mailing list