[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: EOL problems in cvs2svn converted repository

From: Bo Berglund <bo.berglund_at_gmail.com>
Date: Sat, 10 Feb 2018 16:29:13 +0100

On Fri, 9 Feb 2018 14:06:33 -0600, Ryan Schmidt
<subversion-2018_at_ryandesign.com> wrote:

>If you want to do it after the conversion by just setting the
>property starting now, without altering history, then check out
>a working copy, set the properties where you want them, then check it in.

I think this is what I want to do, but preferrably in a semi-automatic
way. I.e. I would like to automatically find all instances of affected
files (via the client config auto-properties entries) and then apply
to the current working copy. So the contrib Python script
svn_apply_autoprops.py might be a choice.

And, yes, I am working on Windows with this.

I tried the contrib py script on my Windows machine as follows:

python svn_apply_autoprops.py --config %APPDATA%\Subversion\config
D:\Engineering\Projects\Subversion\EI
Traceback (most recent call last):
  File "svn_apply_autoprops.py", line 195, in <module>
    sys.exit(main())
  File "svn_apply_autoprops.py", line 192, in main
    os.path.walk(wc_path, filter_walk, autoprop_lines)
  File "C:\Programs\Python\lib\ntpath.py", line 263, in walk
    walk(name, func, arg)
  File "C:\Programs\Python\lib\ntpath.py", line 259, in walk
    func(arg, top, names)
  File "svn_apply_autoprops.py", line 147, in filter_walk
    status = os.spawnvp(os.P_WAIT, 'svn', command)
AttributeError: 'module' object has no attribute 'spawnvp'

Maybe it is not supposed to work on Windows?
I have Python 2.7.1 installed in my PC.
Should I instead check out the projects on Linux to make it work?

-- 
Bo Berglund
Developer in Sweden
Received on 2018-02-10 16:30:03 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.