[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] Re: random thought on peg restrictions
From: |
Nathaniel Smith |
Subject: |
Re: [Monotone-devel] Re: random thought on peg restrictions |
Date: |
Sun, 26 Mar 2006 09:17:35 -0800 |
User-agent: |
Mutt/1.5.11 |
On Fri, Mar 24, 2006 at 09:11:39PM -0700, Derek Scherger wrote:
> Nathaniel Smith wrote:
> >And the sort of functionality required to code this -- keeping names
> >around, instead of just going straight to node ids -- seems
> >interestingly close to the wartish part of the node-id-based
> >restrictions code, where it needs to do something similar to deal with
> >unversioned items?
>
> True enough. So are you suggesting that this makes that particular wart
> look a little less ugly or somehow justifies it or are you thinking that
> we don't want to use node id based restrictions at all?
Umm, the former, I guess. "log <filename>" should certainly be able
to follow renames. But sometimes a more general solution is actually
easier somehow than a more particular solution.
> >I have no idea whether this goes anywhere, it was just a random
> >thought before bed, so I thought I'd jot it down for future reference,
> >and in case it sparked anything down the line :-).
>
> Along the same lines, I was doing a perforce sync (aka update) to a
> particular revision of some file the other day. The syntax for this is
> something like:
>
> $ p4 sync //depot/path/to/file#version
>
> and as I typed that I wondered whether I was about to get the version I
> hoped for or whether '#version' would be stripped off as a comment.
> Interestingly, it seems that #foo is not considered a comment (by bash
> at least) if some non-whitespace character immediately preceeds it. What
> I mean is:
>
> $ echo foo #bar
> foo
> $ echo foo#bar
> foo#bar
>
> which struck me as a bit odd but possibly convenient. It does seems a
> bit nasty though and I don't know if this is specified or standard
> behaviour. Perforce has various "special" version numbers like #none,
> #head, #have among others which all seem to rely on this quirk to some
> degree.
Exciting. It just makes me think of: http://venge.net ;-)
-- Nathaniel
--
When the flush of a new-born sun fell first on Eden's green and gold,
Our father Adam sat under the Tree and scratched with a stick in the mould;
And the first rude sketch that the world had seen was joy to his mighty heart,
Till the Devil whispered behind the leaves, "It's pretty, but is it Art?"
-- The Conundrum of the Workshops, Rudyard Kipling