dev 2.0.130 → 2.0.131
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/commands/commit.rb +16 -3
- 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: 4e2ce4c9d397fd6ef58e8c7436d9edd752181af4
|
4
|
+
data.tar.gz: 5bec5d37f05de1f78e55d0e80c4f20cd94528af8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 978a19d3089fc65ac8fca89174697333c61f34a2bba14d28d4d182e0d0a895d14e89aef17cc01d983456ae130014de50883eeea96ec44ab432f1729cefa43c27
|
7
|
+
data.tar.gz: 8246a55dfdbfb57568fdc8e09d2561b041a7feeaed72fbace302601b65e04f33d0997fdb1e2b5fab5fff00824663df53b775f356f7daf2811bcf0d9438e34f85
|
data/lib/commands/commit.rb
CHANGED
@@ -10,11 +10,24 @@ class Commit < Array
|
|
10
10
|
else
|
11
11
|
add "git commit -m'all'"
|
12
12
|
end
|
13
|
-
add "<%FileUtils.rm('commit.message')%>" if File.exists?('commit.message')
|
13
|
+
#add "<%FileUtils.rm('commit.message')%>" if File.exists?('commit.message')
|
14
|
+
add "<%File.open('commit.message','w'){|f|f.write('')}%>"
|
14
15
|
end
|
15
16
|
end
|
16
|
-
if(File.exists?('.svn')
|
17
|
-
|
17
|
+
if(File.exists?('.svn'))
|
18
|
+
message=""
|
19
|
+
message=IO.read('commit.message').strip if File.exists?('commit.message')
|
20
|
+
if(!File.exists?('commit.message') || message.length==0)
|
21
|
+
if(defined?(REQUIRE_COMMIT_MESSAGE))
|
22
|
+
puts "commit.message required to perform commit"
|
23
|
+
else
|
24
|
+
add 'svn commit -m"commit all"'
|
25
|
+
end
|
26
|
+
else
|
27
|
+
add 'svn commit --file commit.message'
|
28
|
+
add "<%File.open('commit.message','w'){|f|f.write('')}%>"
|
29
|
+
#add "<%FileUtils.rm('commit.message')%>" if File.exists?('commit.message')
|
30
|
+
end
|
18
31
|
end
|
19
32
|
end
|
20
33
|
end
|