On Oct 22, 2008, at 13:57 PM, Ganesh Sittampalam wrote: > On Wed, 22 Oct 2008, zooko wrote: > >> Great! Once "darcs annotate" is fast then the darcs source code >> browser >> [1] will stop getting time-outs from Trac due to it taking longer >> than >> 30 seconds to run an annotate. > > Could you let me know how that calls annotate? i.e with what > command-line > options.
Sure. If you hit this front page: http://allmydata.org/trac/darcs-2/browser Then it does the following series of invocations of darcs: darcs query contents --quiet --match "hash 20081020182156-72aca-1130292ee981f563df5b3b597a5ce9b8c220e8b2.gz" "GNUmakefile" darcs query contents --quiet --match "hash 20080919071358- c31ef-8202a1a3f97fa2c322a6a9cfba9bcb87c2c6f42b.gz" "autoconf.mk.in" darcs query contents --quiet --match "hash 20081010134727-72aca- aa7ed25dc493d1d79bd8d2b7406aa79b1098ac5e.gz" "configure.ac" darcs query contents --quiet --match "hash 20081010134727-72aca- aa7ed25dc493d1d79bd8d2b7406aa79b1098ac5e.gz" "aclocal.m4" darcs query contents --quiet --match "hash 20081020200931-72aca- cdd2b1802d196b0cd806966a224fbe4e9095d761.gz" "Setup.hs" Then if you click on GNUmakefile, it does this: darcs query contents --quiet --match "hash 20081020182156-72aca-1130292ee981f563df5b3b597a5ce9b8c220e8b2.gz" "GNUmakefile" Then if you click on "Annotate" (top right corner when viewing the GNUmakefile), it does this: darcs annotate --xml-output --match "hash 20081020182156-72aca-1130292ee981f563df5b3b597a5ce9b8c220e8b2.gz" GNUmakefile Again. Although actually I think trac+darcs notices that it already knows the answer in its cache and does not actually invoke darcs again: 2008-10-22 14:54:12,604 Trac[repository] DEBUG: Cache hit GNUmakefile at rev 6447 Then if you click on the revision number "445" in the left-hand column at line one of the file, it does this: darcs query contents --quiet --match "hash 20030521161034-96760-2dbfb6199b275601e825e40e0fb5a080ffc0b107.gz" "Makefile" darcs query contents --quiet --match "hash 20030521193910-96760-42b1e6ee4f6a178dbfde88c3070e917620964253.gz" "Makefile" Whoops! Then it gets an internal error in darcs! 2008-10-22 14:57:12,579 Trac[main] WARNING: 500 Darcs execution failed (Running (cd /home/source/darcs/darcs-2/trunk- hashedformat; TZ=UTC darcs query contents --quiet --match "hash 20030521193910-96760-42b1e6ee4f6a178dbfde88c3070e917620964253.gz" "Makefile") failed: 2, darcs failed: Error applying hunk to file ./Patch.lhs : ) [EMAIL PROTECTED]:~/projects/darcs-2$ darcs --version 2.1.0 (+ 2 patches) Regards, Zooko --- http://allmydata.org -- Tahoe, the Least-Authority Filesystem http://allmydata.com -- back up all your files for $10/month _______________________________________________ darcs-users mailing list [email protected] http://lists.osuosl.org/mailman/listinfo/darcs-users
