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:
Whitespace cleanup.
francois (author)
Fri May 09 07:30:21 -0700 2008
commit  50744c398a3e686abd5eb743a5e59ed67929c4ff
tree    bb103c21783ea1be2d799be187c7bbdadc7602a3
parent  1f33caa0eb2ab49783bcba64423255085f3b4c34
...
1
2
3
4
5
6
7
8
9
 
10
11
12
...
28
29
30
31
32
 
33
34
35
...
37
38
39
40
 
41
42
43
44
 
45
46
47
48
 
49
50
51
52
53
54
55
 
56
57
58
59
 
60
61
62
63
 
64
65
66
67
68
69
 
70
71
72
73
74
...
1
2
3
 
4
5
6
7
 
8
9
10
11
...
27
28
29
 
 
30
31
32
33
...
35
36
37
 
38
39
40
41
 
42
43
44
45
 
46
47
48
49
50
51
52
 
53
54
55
56
 
57
58
59
60
 
61
62
63
64
65
66
 
67
68
69
70
 
71
0
@@ -1,12 +1,11 @@
0
 require File.dirname(__FILE__) + "/../test_helper"
0
 
0
 class TestRepository < Test::Unit::TestCase
0
-
0
   def setup
0
     Piston::Repository.class_variable_set(:@@handlers, [Piston::Git::Repository, Piston::Svn::Repository])
0
     @repository = Piston::Repository.new("url")
0
   end
0
-
0
+
0
   def test_guess_asks_each_handler_in_turn
0
     Piston::Repository.send(:handlers).clear
0
     Piston::Repository.add_handler(handler = mock("handler"))
0
@@ -28,8 +27,7 @@ class TestRepository < Test::Unit::TestCase
0
     Piston::Repository.add_handler handler
0
     assert_equal handler_instance, Piston::Repository.guess(url)
0
   end
0
-
0
-
0
+
0
   def test_if_guess_return_GIT_repository_when_url_is_git_repository
0
     assert_equal Piston::Git::Repository.new("git://github.com/francois/piston.git"), Piston::Repository.guess("git://github.com/francois/piston.git")
0
   end
0
@@ -37,38 +35,37 @@ class TestRepository < Test::Unit::TestCase
0
   def test_if_guess_return_SVN_repository_when_url_is_svn_repository
0
     assert_equal Piston::Svn::Repository.new("svn://svn.com/francois/piston.git"), Piston::Repository.guess("svn://svn.com/francois/piston.git")
0
   end
0
-
0
+
0
   def test_guess_when_unhandled_url
0
     assert_raise(Piston::Repository::UnhandledUrl) { Piston::Repository.guess("invalid") }
0
   end
0
-
0
+
0
   def test_handlers
0
     assert_equal [Piston::Git::Repository, Piston::Svn::Repository], Piston::Repository.handlers
0
   end
0
-
0
+
0
   def test_add_handler
0
     before_add = Piston::Repository.class_variable_get(:@@handlers)
0
     after_add = before_add << Piston::Git::Repository
0
     Piston::Repository.add_handler(Piston::Git::Repository)
0
     assert_equal after_add, Piston::Repository.class_variable_get(:@@handlers)
0
   end
0
-
0
+
0
   def test_initialize
0
     assert_equal "url", @repository.instance_variable_get(:@url)
0
   end
0
-
0
+
0
   def test_url
0
     assert_equal "url", @repository.url
0
   end
0
-
0
+
0
   def test_at
0
     revision = @repository.at("2")
0
     assert_equal @repository, revision.repository
0
     assert_equal "2", revision.revision
0
   end
0
-
0
+
0
   def test_to_s
0
     assert_equal "Piston::Repository(url)", @repository.to_s
0
   end
0
-
0
 end
...
1
2
3
4
5
6
7
8
9
10
 
11
12
13
14
15
 
16
17
18
19
 
20
21
22
23
 
24
25
26
...
28
29
30
31
32
...
1
2
3
 
4
5
6
7
8
 
9
10
11
12
13
 
14
15
16
17
 
18
19
20
21
 
22
23
24
25
...
27
28
29
 
30
0
@@ -1,26 +1,25 @@
0
 require File.dirname(__FILE__) + "/../test_helper"
0
 
0
 class TestRevision < Test::Unit::TestCase
0
-
0
   def setup
0
     @repository = Piston::Repository.new("url")
0
     @revision_number = "1"
0
     @revision = Piston::Revision.new(@repository, @revision_number)
0
   end
0
-
0
+
0
   def test_initialize
0
     assert_equal @repository, @revision.instance_variable_get(:@repository)
0
     assert_equal @revision_number, @revision.instance_variable_get(:@revision)
0
   end
0
-
0
+
0
   def test_repository
0
     assert_equal @repository, @revision.repository
0
   end
0
-
0
+
0
   def test_revision
0
     assert_equal @revision_number, @revision.revision
0
   end
0
-
0
+
0
   def test_name
0
     assert_equal @revision_number, @revision.name
0
   end
0
@@ -28,5 +27,4 @@ class TestRevision < Test::Unit::TestCase
0
   def test_to_s
0
     assert_equal "Piston::Revision(url@1)", @revision.to_s
0
   end
0
-
0
 end

Comments

    No one has commented yet.