No subject


Fri Aug 24 18:29:08 UTC 2007


 diff_files f o n = if getbin o == getbin n
-                   then Nothing
+                   then unsafePerformIO sync f `seq` Nothing
                    else if has_bin o || has_bin n
                        :

Well, now sync isn't that easy, it seems.  Perhaps somebody who
actually understands the code should look at it :-)

>>> A third possibility would be to run the sync after each record, pull or
>>> apply, rather than before each whatsnew or record. 

And perhaps only for the affected files?  Indeed, sync seems to (re)do a
checking of syncing criteria.  I'll see if I can get a newer repo and
look around a bit.

> The only catch will be that this would mean if a user
> does something like copy a repository by hand, the timestamps will be
> messed up and whatsnew will be slow until a record or pull is done, which
> could be confusing.

darcs sync?

(This was the first time I looked at the code; it probably shows :-)

-kzm
-- 
If I haven't seen further, it is by standing in the footprints of giants




More information about the darcs-users mailing list