dev 2.0.109 → 2.0.110
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/commands/add.rb +8 -13
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c5eca7b3b8318924572ebdac06201227e92bbe4
|
4
|
+
data.tar.gz: b977de466330e9aabfee51261ef72b7ced399abb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee686790277bf6acce4aa2f92c53eb0c02262e9d23e20afa43644c2d0e326d250ec105e4d311bb08fbff9ead437bcbec44d680af676b6cffea58410d2998b1f0
|
7
|
+
data.tar.gz: c85da8ae2d4f35d72b64c06fa80b87bb0aa3b7354e65642ff4635519c6b5f6ba9112769150bb9deadcee8bb5543e3a2f3d047967d515409fb054624e1ff3f877
|
data/lib/commands/add.rb
CHANGED
@@ -6,20 +6,15 @@ class Add < Array
|
|
6
6
|
if(defined?(SOURCE))
|
7
7
|
if(File.exists?('.svn'))
|
8
8
|
SOURCE.each{|f|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
else
|
18
|
-
puts "#{status}"
|
9
|
+
if(File.exists?(f))
|
10
|
+
status=Command.output("svn status #{f}")
|
11
|
+
if(status.length==0 || status.include?('was not found'))
|
12
|
+
puts "svn add #{f} --parents"
|
13
|
+
add "svn add #{f} --parents"
|
14
|
+
else
|
15
|
+
puts "#{status}"
|
16
|
+
end
|
19
17
|
end
|
20
|
-
#add "svn add #{f} --parents" if Command.output("svn status #{f}").include?('?')
|
21
|
-
#add "svn add #{f} --parents" if Command.output("svn status #{f}").include?('was not found')
|
22
|
-
#add "svn add #{f} --parents" if Command.exit_code("svn status #{f}") != 0
|
23
18
|
}
|
24
19
|
end
|
25
20
|
if(File.exists?('.git'))
|