svndumpfilter2 + Windows HowTo

2.3k Views Asked by At

How do you get svndumpfilter2 or svndumpfilter3 working in Windows?

type dump_file | svndumpfilter2 exclude xyz > filtered_dump_file

has no idea what svndumpfilter2 is regardless of where I put the script file.

Note: Python is installed and I did add .py extension to the file => svndumpfilter2.py

2

There are 2 best solutions below

0
On BEST ANSWER

Python on windows doesn't support pipes when called automatically. You have to run python.exe on the .py file explicitly. e.g.:

type input.dump | C:\Python26\python.exe C:\Path\to\svndumpfilter3.py exclude xyz > output.dump
1
On

Do you have Python installed? If so, you should be able to get it to work by renaming the script to svndumpfilter2.py (or svndumpfilter3.py). Windows doesn't understand the shabang line at the top of the script

#!/usr/bin/env python
def foo():