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

[patch] test_info.rb

From: Joe Swatosh <joe.swatosh_at_gmail.com>
Date: 2007-03-14 06:45:03 CET

Hi kou,

I know you don't want to use binary io on windows, but you may want to
consider this as an exception:

[[[
* subversion/bindings/swig/ruby/test/test_info.rb
 use binary file io on windows so the extra line ending nonsense isn't
 added to the data making it to the repo.
]]]

Index: subversion/bindings/swig/ruby/test/test_info.rb
===================================================================
--- subversion/bindings/swig/ruby/test/test_info.rb (revision 23804)
+++ subversion/bindings/swig/ruby/test/test_info.rb (working copy)
@@ -176,7 +176,7 @@
     file4_prop_key = "XXX"
     file4_prop_value = "YYY"
     File.open(file1_path, "w") {|f| f.puts "changed"}
- File.open(file2_path, "w") {|f| f.puts "removed\nadded"}
+ File.open(file2_path, "wb") {|f| f.puts "removed\nadded"}
     FileUtils.touch(file4_path)
     ctx.add(file4_path)
     ctx.propdel(file1_prop_key, file1_path)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Mar 14 06:45:15 2007

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