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:
Updated import svn_git and svn_svn samples.
francois (author)
Sat Mar 15 11:56:28 -0700 2008
commit  d755889565974f8f7ec60463dc26db519549bc89
tree    32d8e6010f425c9355bbc8d5651bde4ce337613d
parent  3cc9ef912975532dbb7d9dacf08a9291285deec8
...
3
4
5
6
7
8
 
 
 
9
10
11
12
 
 
 
 
 
 
 
13
14
15
...
17
18
19
20
21
 
 
22
23
24
...
3
4
5
 
 
 
6
7
8
9
 
 
 
10
11
12
13
14
15
16
17
18
19
...
21
22
23
 
 
24
25
26
27
28
0
@@ -3,13 +3,17 @@
0
 # Import an SVN repository into a Git working copy.
0
 require File.dirname(__FILE__) + "/common"
0
 
0
-(@root + "tmp/repos").rmtree rescue nil
0
-(@root + "tmp/wc").rmtree rescue nil
0
-(@root + "tmp/.xlsuite.tmp").rmtree rescue nil
0
+@root = @root + "tmp/svn_git"
0
+@root.rmtree rescue nil
0
+@root.mkpath
0
 
0
-(@root + "tmp/wc").mkpath
0
-File.open(@root + "tmp/wc/README", "wb") {|f| f.write "Hello World"}
0
-Dir.chdir(@root + "tmp/wc") do
0
+@repos = @root + "repos"
0
+@wc = @root + "wc"
0
+@tmp = @root + "xlsuite.tmp"
0
+
0
+@wc.mkpath
0
+File.open(@wc + "README", "wb") {|f| f.write "Hello World"}
0
+Dir.chdir(@wc) do
0
   git :init
0
   git :add, "."
0
   git :commit, "-m", "initial"
0
@@ -17,8 +21,8 @@
0
 
0
 repos = Piston::Svn::Repository.new("http://svn.xlsuite.org/trunk/lib")
0
 rev = repos.at(:head)
0
-rev.checkout_to(@root + "tmp/.xlsuite.tmp")
0
-wc = Piston::Git::WorkingCopy.new(@root + "tmp/wc/vendor")
0
+rev.checkout_to(@tmp)
0
+wc = Piston::Git::WorkingCopy.new(@wc + "vendor")
0
 wc.create
0
 wc.copy_from(rev)
0
 wc.remember(rev.remember_values)
...
3
4
5
6
7
8
 
 
 
9
10
11
 
 
 
12
 
 
 
13
14
15
16
 
 
17
18
19
...
3
4
5
 
 
 
6
7
8
9
 
 
10
11
12
13
14
15
16
17
18
 
 
19
20
21
22
23
0
@@ -3,17 +3,21 @@
0
 # Import an SVN repository into an SVN working copy.
0
 require File.dirname(__FILE__) + "/common"
0
 
0
-(@root + "tmp/repos").rmtree rescue nil
0
-(@root + "tmp/wc").rmtree rescue nil
0
-(@root + "tmp/.xlsuite.tmp").rmtree rescue nil
0
+@root = @root + "tmp/svn_svn"
0
+@root.rmtree rescue nil
0
+@root.mkpath
0
 
0
-svnadmin :create, @root + "tmp/repos"
0
-svn :checkout, "file://#{(@root + 'tmp/repos').realpath}", @root + "tmp/wc"
0
+@repos = @root + "repos"
0
+@wc = @root + "wc"
0
+@tmp = @root + "xlsuite.tmp"
0
 
0
+svnadmin :create, @repos
0
+svn :checkout, "file://#{@repos.realpath}", @wc
0
+
0
 repos = Piston::Svn::Repository.new("http://svn.xlsuite.org/trunk/lib")
0
 rev = repos.at(:head)
0
-rev.checkout_to(@root + "tmp/.xlsuite.tmp")
0
-wc = Piston::Svn::WorkingCopy.new(@root + "tmp/wc/vendor")
0
+rev.checkout_to(@tmp)
0
+wc = Piston::Svn::WorkingCopy.new(@wc + "tmp")
0
 wc.create
0
 wc.copy_from(rev)
0
 wc.remember(rev.remember_values)

Comments

    No one has commented yet.