RE: [viewvc-users] Problems with Initial Setup

Eric McCarty <[email protected]>
Newsgroups gmane.comp.version-control.cvs.viewcvs.user
Message-ID <D60A59D30B96614E92BABFE3B2DD7313039023743F@exchange.ostendo.local>
Actually I was able to fix the issue by setting the following from 0, to 1.  I have absolutely no idea why this worked but since it seemed the problem was that I couldn't fire up the RCS utilities, it was worth a try, and it panned out. Spiffy experimental feature. 

One thing I do have to say is that ViewVC's documentation is pretty damn bad. When you say "set var=" to the directory your ViewVC/RCS/CVS/etc. is pointed to; they need to give an example since you don’t know if its c:\rcs or c:\rcs\bin, c:\rcs\bin\win32, etc. Just my .02 from setting it up with no prior knowledge.


# use rcsparse python module to retrieve cvs repository information instead
# of invoking rcs utilities. this feature is experimental
use_rcsparse = 1


Thanks,

Eric

-----Original Message-----
From: C. Michael Pilato [mailto:[email protected]] 
Sent: Wednesday, September 09, 2009 8:23 AM
To: Eric McCarty
Cc: [email protected]
Subject: Re: [viewvc-users] Problems with Initial Setup

Eric McCarty wrote:
> Sure, here it is in its entirety. Install paths are 
> E:\cvsntrespository E:\rcs E:\viewvc

Your configuration looks okay to me at first glance.

Can you try this patch on your system's ViewVC instance, and see if it helps diagnose the problem?

Index: lib/win32popen.py
===================================================================
--- lib/win32popen.py	(revision 2258)
+++ lib/win32popen.py	(working copy)
@@ -72,17 +72,20 @@
     si.hStdError = hStdError

   # create the process
-  phandle, pid, thandle, tid = win32process.CreateProcess \
-  ( None,                            # appName
-    cmd,                             # commandLine
-    None,                            # processAttributes
-    None,                            # threadAttributes
-    1,                               # bInheritHandles
-    win32con.NORMAL_PRIORITY_CLASS,  # dwCreationFlags
-    None,                            # newEnvironment
-    None,                            # currentDirectory
-    si                               # startupinfo
-  )
+  try:
+    phandle, pid, thandle, tid = win32process.CreateProcess \
+    ( None,                            # appName
+      cmd,                             # commandLine
+      None,                            # processAttributes
+      None,                            # threadAttributes
+      1,                               # bInheritHandles
+      win32con.NORMAL_PRIORITY_CLASS,  # dwCreationFlags
+      None,                            # newEnvironment
+      None,                            # currentDirectory
+      si                               # startupinfo
+    )
+  except:
+    raise IOError("Died on commandline: %s" % (cmd))


--
C. Michael Pilato <[email protected]>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand

------------------------------------------------------
http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=2392966

To unsubscribe from this discussion, e-mail: [[email protected]].
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.