[darcs-devel] [issue1155] behaviour of darcs annotate

Zooko bugs at darcs.net
Wed Oct 22 22:49:03 UTC 2008


New submission from Zooko <zooko at zooko.com>:

As earlier posted to darcs-users, invoking

darcs query contents --quiet --match "hash  
20030521193910-96760-42b1e6ee4f6a178dbfde88c3070e917620964253.gz"  
"Makefile"

on the darcs darcs repository with darcs-2.1.0 results in:

failed: 2,
darcs failed:  Error applying hunk to file ./Patch.lhs

Dang it!  I just tried to reproduce it and I can't.  The exact same  
web query through trac prompts trac to execute the exact same darcs  
command-line, but this time it works.  Also it works if I execute  
that command-line from bash.

Argh!  How does irreproducbility sneak into this?  It *ought* to be a  
deterministic function.

By the way, it takes about 15 seconds to execute.  Hence the original  
"optimizing annotate" motivation for looking at this...

Regards,

Zooko	

Begin forwarded message:

> From: zooko <zooko at zooko.com>
> Date: October 22, 2008 16:03:41 PM MDT
> To: Ganesh Sittampalam <ganesh at earth.li>
> Cc: darcs-users at darcs.net
> Subject: Re: [darcs-users] behaviour of darcs annotate
>
>
> 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
> : )
>
> trac at org:~/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
> darcs-users at darcs.net
> http://lists.osuosl.org/mailman/listinfo/darcs-users

---
http://allmydata.org -- Tahoe, the Least-Authority Filesystem
http://allmydata.com -- back up all your files for $10/month

----------
messages: 6391
nosy: dagit, dmitry.kurochkin, kowey, simon, thorkilnaur, zooko
status: unread
title: behaviour of darcs annotate

__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/issue1155>
__________________________________


More information about the darcs-devel mailing list