logo       
Google Custom Search
    AddThis Social Bookmark Button

Re: darcs patch: Implement break2PS. (and 1 more): msg#00125

Subject: Re: darcs patch: Implement break2PS. (and 1 more)
>> I think I'm going to change its interface, by the way, to return
>> 
>>   (takePS (n+1) ps, dropPS (n+1) ps)
>> 
>> rather than
>> 
>>   (takePS n ps, dropPS (n+2) ps)

> I sort of liked the latter interface.  How is that the other helps with
> parsing committer and author lines?

In order to parse

  Junio C Hamano <junkio@xxxxxxx> 1130061738 -0700

you want to split the string at "> ", but keep the first '>' in the
first part split.  If you split without keeping the '>' and then add a
'>', you loose sharing.

> Speaking of darcs changes, darcs changes doesn't seem to complete in any
> sort of reasonable amount of time on the git git repository.  Do you know
> what causes this?

Yes.  Junio has learnt how to do n-way merges in Git, and he's abusing
the functionality.  Just have a look at what happened to the
repository in mid-September (use gitk).

In order to play with the current code, you'll need to switch to an
older revision of Git.  Try the following:

  $ echo '89ab859e9452cbc8f1f15afab52257e9b789c899' > 
.git/refs/heads/reasonable-head
  $ rm .git/HEAD
  $ ln -s refs/heads/reasonable-head .git/HEAD

You can switch back to Junio's current head with

  $ rm .git/HEAD
  $ ln -s refs/heads/master .git/HEAD

I've got a version that works in reasonable time with Junio's current
tree, but it's too ugly to share.  I'm planning to clean it up tonight
-- expect a patch before dawn.

                                        Juliusz



Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>