dev 2.1.29 → 2.1.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/tasks/add.rb +21 -15
- 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: 1fcd2988db575263e93c37190eb58babe302c8d2
|
4
|
+
data.tar.gz: 45ec11c713857ed935ee0bf4f8d4c55009216343
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f1913bd2e8de6b2149a9dfd562ae794f7517467bd0b6a68fd3f7f3d67e9b59bb01bac03f5d5c2f26acc54d9de6c86a095ec9db7184bc5466df2f513c080b611
|
7
|
+
data.tar.gz: ce7da1943ac91c5315c30ab80149236cf17d6180075021aeee93fcee4f57a0dae76ae7ff90f1512694053ab2fe89a40d4b745b783152b8865e58bd45b1b0c5a9
|
data/lib/tasks/add.rb
CHANGED
@@ -17,21 +17,27 @@ class Add < Array
|
|
17
17
|
#---
|
18
18
|
SOURCE.each{|f|
|
19
19
|
if(File.exists?(f) && File.file?(f) && !list_output.include?(f))
|
20
|
-
if(
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
20
|
+
if(m = status_output.match(/^(?<action>.)\s+(?<file>#{f})$/i))
|
21
|
+
if(m[:file] == f && m[:action] == '?')
|
22
|
+
add_quiet "svn add \"#{f}\" --parents"
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
# if(f.include?(' '))
|
27
|
+
# status=Command.output("svn status \"#{f}\"")
|
28
|
+
# error=Command.error("svn status \"#{f}\"")
|
29
|
+
# else
|
30
|
+
# status=Command.output("svn status #{f}")
|
31
|
+
# error=Command.error("svn status #{f}")
|
32
|
+
# end
|
33
|
+
# if(status.include?('?') || status.include?('was not found') || error.include?('was not found'))
|
34
|
+
# if(f.include?(' '))
|
35
|
+
# add_quiet "svn add \"#{f}\" --parents"
|
36
|
+
# else
|
37
|
+
# add_quiet "svn add #{f} --parents"
|
38
|
+
# end
|
39
|
+
# end
|
40
|
+
#end
|
35
41
|
}
|
36
42
|
end
|
37
43
|
if(File.exists?('.git'))
|