svndumpfilter2 + Windows HowTo

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

Answers


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

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(): 

Need Your Help

Dynamic label "for" attribute in Polymer

html polymer web-component polymer-1.0 shadow-dom

I am attempting to create a custom radio-button template in Polymer, to be referenced as such:

How do I create a custom validation directive (i.e. attribute for validation) in Angular 2.0?

angular typescript

I am working on a small project for Angular 2.0 using TypeScript. Right now to my understanding, Angular 2.0 does not have built-in validators for "min" and "max" tags. I understand how you can bui...