Repos Search 1.2-M4

27 views
Skip to first unread message

David Gee

unread,
Sep 17, 2010, 11:47:07 AM9/17/10
to ReposStyle
Hi,

I checked out a copy of repos search 1.2-M4 from Subversion but I'm
having some problems getting it to build my index. Below is a copy of
the output from rebuild_index.py with the debug logging level enabled.

I am running Python 2.6 (I've also tried this with 2.7, to no avail)
and Subversion 1.6.12 with Apache 2.2. I'm using the supplied jetty
server (I've also tried it in Tomcat 7). The previous version (1.1.2)
seems to work just fine.

Regards,
David


rebuild_index.py output:


rebuild_index.py -p ..\..\Repositories\test --loglevel debug
# Latest revision is 2
# python svnhook.py -o drop -p ..\..\Repositories\test --loglevel
debug
2010-09-17 10:43:35,023 - INFO - svnhead dropped id:test\^*
2010-09-17 10:43:35,180 - INFO - svnhead committed
2010-09-17 10:43:35,196 - INFO - svnrev committed
# python svnhook.py -o batch -r 1 -p ..\..\Repositories\test --
loglevel debug
2010-09-17 10:43:38,039 - INFO - Reading test rev 1
2010-09-17 10:43:38,414 - DEBUG - Ignoring A folder /tags/
2010-09-17 10:43:38,430 - DEBUG - Ignoring A folder /trunk/
# python svnhook.py -o batch -r 2 -p ..\..\Repositories\test --
loglevel debug
2010-09-17 10:43:41,180 - INFO - Reading test rev 2
2010-09-17 10:43:41,571 - DEBUG - Ignoring A folder /trunk/New Folder/
2010-09-17 10:43:41,586 - DEBUG - A /trunk/New Folder/
shakespeare.txt
2010-09-17 10:43:42,101 - DEBUG - Writing /trunk/New Folder/
shakespeare.txt to temp c:\docume~1\mpaudgee\locals~1\temp\tmpqbadtx
2010-09-17 10:43:43,509 - INFO - svnhead added test^/trunk/New Folder/
shakespeare.txt
Traceback (most recent call last):
File "svnhook.py", line 474, in <module>
e = repositoryHistoryReader(options, handleRevision,
handlePathEntry, changeHandlers)
File "svnhook.py", line 154, in repositoryHistoryReader
pathEntryHandler(options, options.rev, p, m.group(1), m.group(2),
not p.endswith('/'), changeHandlers)
File "svnhook.py", line 245, in handlePathEntry
handler.onChange(options, options.rev, path)
File "C:\My Documents\Subversion\repos-search-1.2-M4\hook
\handler_svnrev.py", line 56, in onChange
md5 = self.getMd5(options, rev, path)
File "C:\My Documents\Subversion\repos-search-1.2-M4\hook
\handler_svnrev.py", line 24, in getMd5
return self.getDigest(options, rev, path, options.md5)
File "C:\My Documents\Subversion\repos-search-1.2-M4\hook
\handler_svnrev.py", line 31, in getDigest
p = Popen([commandName], stdin=p1.stdout, stdout=PIPE)
File "C:\Program Files\Python26\lib\subprocess.py", line 623, in
__init__
errread, errwrite)
File "C:\Program Files\Python26\lib\subprocess.py", line 833, in
_execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified
Traceback (most recent call last):
File "C:\My Documents\Subversion\repos-search-1.2-M4\hook
\rebuild_index.py", line 76, in <module>
raise NameError('Got exit code %d for command: %s' % (result,
cmd))
NameError: Got exit code 1 for command: python svnhook.py -o batch -r
2 -p ..\..\Repositories\test --loglevel debug

C:\My Documents\Subversion\repos-search-1.2-M4\hook>svnlook: Can't
write to stream: The pipe is being closed.

solsson

unread,
Sep 20, 2010, 2:25:59 AM9/20/10
to ReposStyle
Hi David,

Thanks for testing. The M-releases add new features but are not
stable. Not even beta actually.

I think I know what the error is. If you run "./svnhook.py --help" you
see two new options:
--md5=MD5 The md5 command, defaults to 'md5sum' in PATH.
--sha1=SHA1 Command to digest stdin to SHA-1, defaults to
'shasum' in PATH.
I think those commands are not available by default on windows. You
might be able to download them somewhere. I've used something called
"unxutils" a few years ago. An alternative would be to implement the
method "getDigest" using python code.

/Staffan

David Gee

unread,
Sep 20, 2010, 12:17:30 PM9/20/10
to repos...@googlegroups.com
Thanks, I'll see if I can find sha1 or md5 for Windows and retest.

Regards,
David

--
You received this message because you are subscribed to the Google Groups "ReposStyle" group.
To post to this group, send email to repos...@googlegroups.com.
To unsubscribe from this group, send email to reposstyle+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/reposstyle?hl=en.


Reply all
Reply to author
Forward
0 new messages