[darcs-users] darcstats doesn't work for me
zooko
zooko at zooko.com
Wed Mar 26 16:43:14 UTC 2008
Folks:
I just tried to run the "darcstats" tool on this repository:
http://allmydata.org
I had to make a small patch to darcstats (copied from tailor) to
filter out a bogus character in a patch name that causes a
UnicodeDecodeError. That patch is attached. However, after that
patch, then running darcstats yields no result:
source at org:~/darcs/tahoe/trunk-darcsstats$ time ~/tools/darcstats/
darcstats -r /home/source/darcs/tahoe/trunk
real 0m7.171s
user 0m9.445s
sys 0m0.304s
source at org:~/darcs/tahoe/trunk-darcsstats$ ls -al
total 8
drwxrwsr-x 2 source source 4096 Mar 26 09:36 .
drwxrwsr-x 7 source source 4096 Mar 26 09:19 ..
Regards,
Zooko
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: out.txt
Url: http://lists.osuosl.org/pipermail/darcs-users/attachments/20080326/faf30b52/attachment.txt
-------------- next part --------------
Wed Mar 26 09:40:37 PDT 2008 zooko at zooko.com
* filter out some chars -- I don't understand the issues, but this
patch causes a UnicodeDecodeError to stop happening
New patches:
[filter out some chars -- I don't understand the issues, but this
patch causes a UnicodeDecodeError to stop happening
zooko at zooko.com**20080326164037] {
hunk ./darcstats 70
+allbadchars = "\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0B\x0C\x0E
\x0F\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F
\x7f\xc2"
+from string import maketrans
+tt = maketrans(allbadchars, "?"*len(allbadchars))
hunk ./darcstats 77
+ s = s.translate(tt)
}
Context:
[Set meaningful metavars in optparse.
Alberto Bertogli <albertito at gmail.com>**20070409060855]
[Add the README file.
Alberto Bertogli <albertito at gmail.com>**20070313003057]
[Add the BOLA license.
Alberto Bertogli <albertito at gmail.com>**20070313003045]
[Show default values on --help.
Alberto Bertogli <albertito at gmail.com>**20070313002930]
[Handle very old date formats.
Alberto Bertogli <albertito at gmail.com>**20070313002541
In ancient times, darcs used non-standard date format, that screw
the parser.
Running darcstats on the darcs-unstable repository triggers it.
The fix is to try hard to parse the date using the dateutils
module, and if
anything fails (or dateutils is not available) just assign the
patch to
2000-01-10.
]
[Initial import.
Alberto Bertogli <albertito at gmail.com>**20070312235838]
Patch bundle hash:
ce69468479d9b3db8f08746f91e98fd9e186c3dd
More information about the darcs-users
mailing list