[darcs-users] new version of trac-darcs plugin
K.S.Sreeram
sreeram at tachyontech.net
Tue Aug 8 20:52:59 UTC 2006
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;]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.osuosl.org/pipermail/darcs-users/attachments/20060809/08195730/attachment.pgp
More information about the darcs-users
mailing list