[cvsnt] ChangeRoot.py

Jay Goldman jgoldman at vestmark.com
Thu Apr 19 21:28:31 BST 2007

Community technical support mailing list was retired 2010 and replaced with a professional technical support team. For assistance please contact: Pre-sales Technical support via email to sales@march-hare.com.

when I try to run the change root python macro I get the following

	Traceback (most recent call last):
	  File "<string>", line 1, in <module>
	  File "C:\Program Files\GNU\WinCvs
2.0\PythonLib\cvsgui\MacroRegistry.py", line 210, in DoCmd
	  File "C:\Program Files\GNU\WinCvs 2.0\Macros\ChangeRoot.py",
line 177, in Run
	    oldroot = self.getRoot( self.sel[0])
	  File "C:\Program Files\GNU\WinCvs 2.0\Macros\ChangeRoot.py",
line 123, in getRoot
	    f_root = open( root, 'r')
	TypeError: an integer is required

I've put a print statement in the macro and the value of root is correct
I've even tried a hard-coded value in a separate call to 'open' ... same
error message.

When I start wincvs, I am running version (Build 1), I get the
following startup messages:
	CVS executable: C:\Program Files\cvsnt\cvs.exe
	Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32
bit (Intel)] on win32
	Tk is available, Tk-macros are enabled
	TCL is available, shell is enabled : help (select and press
	Saved settings for C:\x successfully...

What am I doing wrong?

Jay Goldman

More information about the cvsnt mailing list
Download the latest CVSNT, TortosieCVS, WinCVS etc. for Windows 8 etc.
@CVSNT on Twitter   CVSNT on Facebook