David Gee
unread,Sep 17, 2010, 11:47:07 AM9/17/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.