mirror of
https://github.com/redmine/redmine.git
synced 2025-11-04 20:35:57 +01:00
scm: mercurial: use long id in adapter level (#14361)
git-svn-id: http://svn.redmine.org/redmine/trunk@12761 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user