> > Yes. You can do "darcs annotate file -p patch" and parse the annotate > output. If you just want the file contents, write a script that parses the > XML output and show you the "clean" file. > > If you need sample code, you can find it in darcsweb's annotate parsing. > > > Oh, well, it's too tempting; the script is attached =P > > darcs annotate --xml-output filename -p "Patch description" | ./ann2ascii > > will do the trick. > > I haven't tested it a lot, and could be cleaner; but I guess it's useful > as an example.
:-) It's too tempting -- I added your script to my darcs repo, where it now lives in the "tools/" directory along with Jamie Webb's dependency-graphing script. Hooray for scripting! https://yumyum.zooko.com:19144/cgi-bin/darcs.cgi/darcs/stable/?c=patches https://yumyum.zooko.com:19144/pub/repos/darcs/stable The following alternative repo is less frequently updated, but since it doesn't use any encryption or authentication it will work with libcurl's default "centralized certificate hierarchy or nothing" setting: http://zooko.com/repos/darcs-stable Regards, Zooko _______________________________________________ darcs-users mailing list [email protected] http://www.abridgegame.org/mailman/listinfo/darcs-users
