diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-02-22 14:29:09 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-02-22 14:29:09 +0000 |
commit | bb248fb0372910486b7d2dc30974317a9bc4ad36 (patch) | |
tree | 53bcf4c2acfd4f02c05b8e8157b6fed2f0012b87 /lib/redmine/scm/adapters/mercurial_adapter.rb | |
parent | 87a6d79b5be7da3a7814c2833fa05df65d151a96 (diff) | |
download | redmine-bb248fb0372910486b7d2dc30974317a9bc4ad36.tar.gz redmine-bb248fb0372910486b7d2dc30974317a9bc4ad36.zip |
scm: mercurial: change some newlines in mercurial_adapter.rb CRLF to LF.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4927 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/scm/adapters/mercurial_adapter.rb')
-rw-r--r-- | lib/redmine/scm/adapters/mercurial_adapter.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/redmine/scm/adapters/mercurial_adapter.rb b/lib/redmine/scm/adapters/mercurial_adapter.rb index 9021e1d92..a71ae7bd2 100644 --- a/lib/redmine/scm/adapters/mercurial_adapter.rb +++ b/lib/redmine/scm/adapters/mercurial_adapter.rb @@ -56,8 +56,8 @@ module Redmine # id composed of 12 hexa characters. theversion = hgversion_from_command_line if theversion.respond_to?(:force_encoding) - theversion.force_encoding('ASCII-8BIT')
- end
+ theversion.force_encoding('ASCII-8BIT') + end if m = theversion.match(%r{\A(.*?)((\d+\.)+\d+)}) m[2].scan(%r{\d+}).collect(&:to_i) end |