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:
[EMAIL PROTECTED]:~/darcs/tahoe/trunk-darcsstats$ time ~/tools/darcstats/
darcstats -r /home/source/darcs/tahoe/trunk
real 0m7.171s
user 0m9.445s
sys 0m0.304s
[EMAIL PROTECTED]:~/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
Wed Mar 26 09:40:37 PDT 2008 [EMAIL PROTECTED]
* 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
[EMAIL PROTECTED] {
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 <[EMAIL PROTECTED]>**20070409060855]
[Add the README file.
Alberto Bertogli <[EMAIL PROTECTED]>**20070313003057]
[Add the BOLA license.
Alberto Bertogli <[EMAIL PROTECTED]>**20070313003045]
[Show default values on --help.
Alberto Bertogli <[EMAIL PROTECTED]>**20070313002930]
[Handle very old date formats.
Alberto Bertogli <[EMAIL PROTECTED]>**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 <[EMAIL PROTECTED]>**20070312235838]
Patch bundle hash:
ce69468479d9b3db8f08746f91e98fd9e186c3dd
Wed Mar 26 09:40:37 PDT 2008 [EMAIL PROTECTED]
* 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
[EMAIL PROTECTED] {
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 <[EMAIL PROTECTED]>**20070409060855]
[Add the README file.
Alberto Bertogli <[EMAIL PROTECTED]>**20070313003057]
[Add the BOLA license.
Alberto Bertogli <[EMAIL PROTECTED]>**20070313003045]
[Show default values on --help.
Alberto Bertogli <[EMAIL PROTECTED]>**20070313002930]
[Handle very old date formats.
Alberto Bertogli <[EMAIL PROTECTED]>**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 <[EMAIL PROTECTED]>**20070312235838]
Patch bundle hash:
ce69468479d9b3db8f08746f91e98fd9e186c3dd
_______________________________________________
darcs-users mailing list
[email protected]
http://lists.osuosl.org/mailman/listinfo/darcs-users