[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] Re: rfc on h: selector behavior
From: |
Emile Snyder |
Subject: |
Re: [Monotone-devel] Re: rfc on h: selector behavior |
Date: |
Thu, 13 Oct 2005 10:06:35 -0700 |
On Thu, 2005-10-13 at 10:22 +0200, Wim Oudshoorn wrote:
>From a quick look in the manual I get the impression that:
>
> * All selectors accept globbing except:
> - date related selectors
> - ID selector
>
> This seems reasonable to me, dates and IDs have a very restricted
> format. So for consistency sake, I would accept globbing.
Thats kind of my lukewarm argument too, and what I went with.
>
> > erase_ancestors(b:*)
> > or
> > union (erase_ancestors(b:b1), erase_ancestors(b:b2), ...)
>
> Hm, difficult. I think I might lean towards the second case.
Ditto, and for most of the same reasons.
> Head selector, how I would like to use it
> -----------------------------------------
>
> On a related note, I imagine myself using a head selector
> most often in a situation after monotone sync.
> If after sync I get the message that I am not based on head
> I would like to be able to do some comparision.
>
> Scenario I:
> ...........
> I have a checked out copy, without local changes,
> after synchronization I get a new head:
>
>
> Working copy ------> Newly received head
>
> I would like to type something like:
>
> monotone diff --revision=h:
>
> So somehow you need to be able to specify the head
> of the branch of the current working copy.
Huh, interesting. Not sure of the right way to do it, but I can see the
desire to have it ;)
>
> Scenario II:
> ............
> I have checked out a copy and made local changes, which
> are not commited yet.
>
> Working copy -------> Newly received head
> .
> .... working copy is changed on disk!!
>
> I would like to see the differences between
> the working copy revision in the DB and the new head.
>
> monotone diff --revision=i:$(cat MT/revision) --revision=h:
>
> Hm, is there a selector matching the current working copy?
Well, if you want the current *contents* of the working copy, diff
assumes that, but I don't think there is one for the revision in
MT/revision.
> Scenario III:
> .............
> I have a working copy and have commited local changes, which
> are commited:
>
>
> Ancestor -------> Newly received head
> \
> \---> Working copy
>
> I would like to be able to do something like, [fantasy syntax follows]
>
> monotone diff --revision=lca:(h:|i:$(cat MT/revision)) --revision=h:
>
> for the differences between ancestor and newly received head.
Hmmm. I can see the desire for such a thing here too, but appropriate
syntax totally fails me ;)
Thanks for the feedback,
-emile
[Monotone-devel] Re: rfc on h: selector behavior, Wim Oudshoorn, 2005/10/13
- Re: [Monotone-devel] Re: rfc on h: selector behavior,
Emile Snyder <=
Re: [Monotone-devel] Re: rfc on h: selector behavior, Daniel Carosone, 2005/10/13
Re: [Monotone-devel] rfc on h: selector behavior, Emile Snyder, 2005/10/13