diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-11-08 12:34:33 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-11-08 12:34:33 +0000 |
commit | 11ad4d8d02d22f6c3cd856f87b93172a03c31b1c (patch) | |
tree | c4a6fe576cb1f1f9336be3986808975544ee52aa /lib/redmine/scm | |
parent | 5d7bddd65c0591a1abaa78d54b0241670aca90c3 (diff) | |
download | redmine-11ad4d8d02d22f6c3cd856f87b93172a03c31b1c.tar.gz redmine-11ad4d8d02d22f6c3cd856f87b93172a03c31b1c.zip |
cleanup: rubocop: fix Style/MultilineBlockChain in lib/redmine/scm/adapters/mercurial_adapter.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18957 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/scm')
-rw-r--r-- | lib/redmine/scm/adapters/mercurial_adapter.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/redmine/scm/adapters/mercurial_adapter.rb b/lib/redmine/scm/adapters/mercurial_adapter.rb index 82a773224..fd3c80de3 100644 --- a/lib/redmine/scm/adapters/mercurial_adapter.rb +++ b/lib/redmine/scm/adapters/mercurial_adapter.rb @@ -211,7 +211,8 @@ module Redmine :path => with_leading_slash(p), :from_path => (cpmap.member?(p) ? with_leading_slash(cpmap[p]) : nil), :from_revision => (cpmap.member?(p) ? le['node'] : nil)} - end.sort_by { |e| e[:path] } + end + paths.sort_by!{|e| e[:path]} parents_ary = [] as_ary(le['parents']['parent']).map do |par| parents_ary << par['__content__'] if par['__content__'] != "0000000000000000000000000000000000000000" |