summaryrefslogtreecommitdiffstats
path: root/lib/redmine/scm/adapters/mercurial_adapter.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-02-02 04:44:38 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-02-02 04:44:38 +0000
commit5872d079e632963c22c1579045732355ab6a54c0 (patch)
tree3010f61a9087a611d32816211398faee5ab26951 /lib/redmine/scm/adapters/mercurial_adapter.rb
parentd301b8c0c1806a5cdb3a00b671058023a7619e09 (diff)
downloadredmine-5872d079e632963c22c1579045732355ab6a54c0.tar.gz
redmine-5872d079e632963c22c1579045732355ab6a54c0.zip
scm: mercurial: use long id in adapter level (#14361)
git-svn-id: http://svn.redmine.org/redmine/trunk@12761 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/scm/adapters/mercurial_adapter.rb')
-rw-r--r--lib/redmine/scm/adapters/mercurial_adapter.rb4
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 f82af1a59..881fdc89c 100644
--- a/lib/redmine/scm/adapters/mercurial_adapter.rb
+++ b/lib/redmine/scm/adapters/mercurial_adapter.rb
@@ -219,7 +219,7 @@ module Redmine
end.sort { |a, b| a[:path] <=> b[:path] }
parents_ary = []
as_ary(le['parents']['parent']).map do |par|
- parents_ary << par['__content__'] if par['__content__'] != "000000000000"
+ parents_ary << par['__content__'] if par['__content__'] != "0000000000000000000000000000000000000000"
end
yield Revision.new(:revision => le['revision'],
:scmid => le['node'],
@@ -234,7 +234,7 @@ module Redmine
# Returns list of nodes in the specified branch
def nodes_in_branch(branch, options={})
- hg_args = ['rhlog', '--template', '{node|short}\n', '--rhbranch', CGI.escape(branch)]
+ hg_args = ['rhlog', '--template', '{node}\n', '--rhbranch', CGI.escape(branch)]
hg_args << '--from' << CGI.escape(branch)
hg_args << '--to' << '0'
hg_args << '--limit' << options[:limit] if options[:limit]