title: svn diff in a batch file
body: <p>I am trying to obtain the number of lines changed between two two revisions of a file using the svn diff command. My code is as follows:</p>
  
  <pre><code>svn diff "http://svn.apache.org/repos/asf/lucene/dev/trunk" --revision 923475:925738 &gt;&gt;output.txt
  </code></pre>
  
  <p>When i open up a cmd window and run this, it works fine. Now, I am a beginner in batch scripting and not familiar with it. As I understand it, if i copy and paste the above command into a .bat file and then run that .bat file, i should get the same output. However, when i tried this, what happens is that it writes the following to the output text file in a never ending loop.</p>
  
  <p>C:\Users\Desktop>svn diff "http://svn.apache.org/repos/asf/lucene/dev/trunk" --revision 923475:925738  1>>output.txt </p>
  
  <p>Could anyone please tell me what I am doing wrong or show me how to use the svn diff command inside a batch file? Thank you. </p>