dev 1.0.217 → 1.0.218
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/dev/Commands.rb +3 -2
- data/lib/dev/cmd/Update.rb +1 -1
- metadata +1 -1
data/lib/dev/Commands.rb
CHANGED
@@ -97,7 +97,8 @@ class Commands < Hash
|
|
97
97
|
return if scm.scm_type == "none"
|
98
98
|
puts " no differences detected" unless has_diff
|
99
99
|
execute_method("commit") if has_diff
|
100
|
-
if File.exists?(".svn")
|
100
|
+
#if File.exists?(".svn")
|
101
|
+
if Scm.get_default_scm_type == "svn"
|
101
102
|
call=Dev::SystemCall.new('svn update')
|
102
103
|
call=Dev::SystemCall.new('svn info')
|
103
104
|
url = call.output.match(/URL: ([\d\w\.\:\/-]+)/)[1]
|
@@ -147,7 +148,7 @@ class Commands < Hash
|
|
147
148
|
end
|
148
149
|
|
149
150
|
#call=Dev::SystemCall.new('git diff --name-only') if File.exists?(".git")
|
150
|
-
call=Dev::SystemCall.new('svn diff') if File.exists?(".svn")
|
151
|
+
call=Dev::SystemCall.new('svn diff') if Scm.get_default_scm_type == "svn" #if File.exists?(".svn")
|
151
152
|
|
152
153
|
unless call.nil? || call.output.length==0
|
153
154
|
puts_debug call.output
|
data/lib/dev/cmd/Update.rb
CHANGED
@@ -3,7 +3,7 @@ module Cmd
|
|
3
3
|
class Update < Array
|
4
4
|
def refresh
|
5
5
|
strip_auto_entries
|
6
|
-
self << "{:cmd=>'svn update',:auto=>true}" if File.exists?(".svn")
|
6
|
+
self << "{:cmd=>'svn update',:auto=>true}" if Scm.get_default_scm_type == "svn" #File.exists?(".svn")
|
7
7
|
end
|
8
8
|
end # class Compile
|
9
9
|
end # module Cmd
|