[darcs-devel] [issue1354] I need a quick way to get the count of patches in a repo.

Zooko bugs at darcs.net
Thu Feb 12 21:51:01 UTC 2009


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

The darcsver tool [1] generates a version number for your project  
based on the darcs history.  It looks for a darcs tag of the right  
format and if it finds it, it parses it to get the version number.   
Also, it counts how many patches there are in the repository to  
append "-r$NUMBER"  to the version (analogous to SVN's "revision  
numbers").

This latter feature is quite expensive -- every single time anyone  
builds or runs tests in the Tahoe project, the Tahoe build system  
invokes darcsver, which invokes "darcs changes --xml" and parses the  
output.  It takes seconds for "darcs changes --xml" to run, and this  
is the single largest delay in the process of running a quick test.

It would be great if there were a command like...

Uh, like "darcs query repo", which emits the count of patches in 0.05  
seconds.

Okay!  Thanks for using your time machine to fix this bug!

Regards,

Zooko

[1] http://pypi.python.org/pypi/darcsver

----------
messages: 7299
nosy: dmitry.kurochkin, kowey, simon, thorkilnaur, zooko
status: unread
title: I need a quick way to get the count of patches in a repo.

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


More information about the darcs-devel mailing list