public
Description: Piston is a utility that eases vendor branch management. This repository is a complete reimplementation of Piston to provide different backends, depending on the repositories and working copies you pistonize from.
Homepage: http://piston.rubyforge.org/
Clone URL: git://github.com/francois/piston.git
Search Repo:
Finish implementing convert so it deletes the svn:externals after it's 
done.
francois (author)
Sat Jul 19 20:57:21 -0700 2008
commit  ee68afac6094a07f4d7a6c4401ef4f5a5ae15650
tree    990e4dbc912e3812e486fc73502a12acd8c9d275
parent  2b1ff5ce12fd1926d19522a4483f1a8d1c550597
...
17
18
19
 
 
20
21
22
...
17
18
19
20
21
22
23
24
0
@@ -17,6 +17,8 @@ module Piston
0
             logger.info "Importing #{dir.relative_path_from(wc.path)} from #{args[:url]}"
0
             importer.run(args[:url], args[:revision], dir)
0
           end
0
+
0
+ wc.remove_external_references(*targets)
0
         end
0
       end
0
     end
...
77
78
79
 
 
 
 
80
81
82
...
77
78
79
80
81
82
83
84
85
86
0
@@ -77,6 +77,10 @@ module Piston
0
           end
0
         end
0
       end
0
+
0
+ def remove_external_references(*targets)
0
+ svn(:propdel, "svn:externals", *targets)
0
+ end
0
     end
0
   end
0
 end
...
26
27
28
 
 
 
 
 
 
 
 
 
 
29
30
31
...
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
0
@@ -26,6 +26,16 @@ class TestWorkingCopyExternals < Test::Unit::TestCase
0
     assert_equal({@wcdir + "vendor/rails" => {:revision => 8726, :url => "http://dev.rubyonrails.org/svn/rails/trunk"}}, @wc.externals)
0
   end
0
 
0
+ def test_remove_external_references_calls_svn_propdel
0
+ @wc.expects(:svn).with(:propdel, "svn:externals", @wcdir+"vendor")
0
+ @wc.remove_external_references(@wcdir+"vendor")
0
+ end
0
+
0
+ def test_remove_external_references_calls_svn_propdel_with_multiple_dirs
0
+ @wc.expects(:svn).with(:propdel, "svn:externals", @wcdir+"vendor", @wcdir+"vendor/plugins")
0
+ @wc.remove_external_references(@wcdir+"vendor", @wcdir+"vendor/plugins")
0
+ end
0
+
0
   EMPTY_EXTERNALS = ""
0
   SIMPLE_RAILS_EXTERNALS = <<EOF
0
   Properties on 'vendor':

Comments

    No one has commented yet.