lib/commit.rb in dev_tasks-0.0.139 vs lib/commit.rb in dev_tasks-0.0.140
- old
+ new
@@ -1,5 +1,7 @@
+require_relative('./environment.rb')
+
class Commit < Array
def initialize
if(Dir.exists?(".git"))
if(!`git status`.include?('nothing to commit') || `git status`.include?('untracked files present'))
@@ -12,10 +14,10 @@
end
end
if(Dir.exists?(".svn"))
self.add 'svn commit -m"commit all"'
self.add "svn update"
- self.add '<%puts `svn info`%>'
+ self.add "<%puts 'Last Changed Rev: #{Environment.svn_latest_revision}'%>"
self.add "<%DEV_TASKS[:commands][:verify].update%>"
end
end
def add command
\ No newline at end of file