[prev in list] [next in list] [prev in thread] [next in thread] 

List:       darcs-users
Subject:    Re: [darcs-users] Re: Retrieving a specific "version" of a file
From:       David Roundy <droundy () abridgegame ! org>
Date:       2005-04-07 11:08:52
Message-ID: 20050407110846.GA16778 () abridgegame ! org
[Download RAW message or body]

On Thu, Apr 07, 2005 at 01:50:33AM +0000, Mark Stosberg wrote:
> On 2005-04-06, Juliusz Chroboczek <Juliusz.Chroboczek@pps.jussieu.fr> wrote:
> >>     cp file file.copy; 
> >>     darcs diff --to-patch=foo file | patch -R file.copy
> >
> > Yes, that's the way vc-darcs.el works (in the case when it cannot go
> > under _darcs/current).  It's grossly inefficient, though -- the first
> > thing |darcs diff| does is to create complete trees of both the from
> > and to versions.
> 
> Is that required in the darcs model, or is it optimizable?

It is optimizable... and I seem to recall that some work has already gone
into optimizing it.  But doing this *really* efficiently will require
storing per-file change information cached in some way.
-- 
David Roundy
http://www.darcs.net


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic