public
Rubygem
Description: Simple tool to help track git and svn vendor branches in a git repository
Homepage: http://github.com/evilchelu/braid/wikis/home
Clone URL: git://github.com/evilchelu/braid.git
rename break to safe as it's crashing in tests
evilchelu (author)
Tue Aug 19 13:27:35 -0700 2008
commit  b3a763f8a54cd2da7924ca969668d311901927c5
tree    0218804c4ddffc676f11b64c422045d9acd940f2
parent  249f33f463b9287036c1a64fb5c0e567d06eb231
...
74
75
76
77
 
78
79
80
 
81
82
83
...
211
212
213
214
215
 
 
216
217
 
218
219
220
...
74
75
76
 
77
78
79
 
80
81
82
83
...
211
212
213
 
 
214
215
216
 
217
218
219
220
0
@@ -74,10 +74,10 @@ Main {
0
       . braid update local/dir
0
     TXT
0
 
0
-    mixin :optional_path, :option_revision, :option_head, :option_break
0
+    mixin :optional_path, :option_revision, :option_head, :option_safe
0
 
0
     run {
0
-      Braid::Command.run(:update, path, { "revision" => revision, "head" => head , "break" => break? })
0
+      Braid::Command.run(:update, path, { "revision" => revision, "head" => head , "safe" => safe })
0
     }
0
   }
0
 
0
@@ -211,10 +211,10 @@ Main {
0
     }
0
   }
0
 
0
-  mixin(:option_break) {
0
-    option(:break) {
0
+  mixin(:option_safe) {
0
+    option(:safe) {
0
       optional
0
-      desc 'break on merge errors'
0
+      desc 'safe on merge errors'
0
       attr
0
     }
0
   }
...
53
54
55
56
 
57
58
59
...
66
67
68
69
 
70
71
72
...
53
54
55
 
56
57
58
59
...
66
67
68
 
69
70
71
72
0
@@ -53,7 +53,7 @@ module Braid
0
             git.rm_r(mirror.path)
0
             git.read_tree(target_hash, mirror.path)
0
             unless diff.empty?
0
-              git.apply(diff, *(options["break"] ? ["--reject"] : []))
0
+              git.apply(diff, *(options["safe"] ? ["--reject"] : []))
0
             end
0
           else
0
             git.merge_subtree(target_hash)
0
@@ -66,7 +66,7 @@ module Braid
0
           git.commit(commit_message)
0
 
0
         rescue Operations::ShellExecutionError => error
0
-          if options["break"]
0
+          if options["safe"]
0
             msg "Caught shell error. Breaking."
0
             exit(0)
0
           else

Comments