Lele Gaifax wrote:
> Eh, it's a shame that darcs does not provide a more efficient way of
> obtaining the content of a past revision of a file. Up to 0.3,
> trac-darcs did a "darcs diff -u -p some patch | patch pristine" to get
> there, slightly faster than the current approach of parsing its annotate
> output, but suffering of serious other problems...
> 
> Darcs should definitely grows a "cat" command, ala "svn cat". Given that
> its annotate command is already able to produce the whole content, even
> if in a strange and difficult format, it shouldn't be very difficult for
> an haskeller to implement the simpler output. I won't say how much I'd
> like to be able to do that...

I'm just toying with a hack for simulating 'darcs cat'...

darcs diff --diff-command "cat %2" --to-patch $PATCH $FILE

with a bit of hacking i might be able to get this to work. In fact
this'll solve the encodings/xml problem as well!

Unfortunately I can't do this on windows because %2 expands to a
filename with forward slashes and the 'type' command (equivalent of cat)
understands only backslashes! :( Perhaps i can fallback to using
annotate on windows.

[sreeram;]

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
darcs-users mailing list
darcs-users@darcs.net
http://www.abridgegame.org/mailman/listinfo/darcs-users

Reply via email to