プロジェクト

全般

プロフィール

Vote #81723

未完了

Support revision without any message

Admin Redmine さんがほぼ2年前に追加. ほぼ2年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
SCM_3
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
3
version_id:
33
issue_org_id:
36258
author_id:
147409
assigned_to_id:
0
comments:
6
status_id:
1
tracker_id:
3
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

In sophesticated position a repository may contain revision without message.


journals

I'm not familiar with Mercurial, so I don't understand the improvements the patch brings. Could you explain the benefits?
--------------------------------------------------------------------------------
Mercurial is very similar to git. I added another source to my repository, and when did pull from that source, unbelievably there is a revision without any commit message. When I wanted to fetch changesets, there was an exception (line that patched).
--------------------------------------------------------------------------------
Thank you, I understand the situation.

Can you please paste the error message in production.log?
--------------------------------------------------------------------------------
Go MAEDA wrote:
> Thank you, I understand the situation.
>
> Can you please paste the error message in production.log?

<pre>
Started GET "/projects/test/repository" for 31.57.0.155 at 2021-12-22 11:18:02 +0330
App 2260378 output: Processing by RepositoriesController#show as HTML
App 2260378 output: Parameters: {"id"=>"test"}
App 2260378 output: Current user: user (id=1)
App 2260378 output: Completed 500 Internal Server Error in 706ms (ActiveRecord: 6.4ms)
App 2260378 output:
App 2260378 output: TypeError (no implicit conversion of nil into String):
App 2260378 output:
App 2260378 output: lib/redmine/scm/adapters/mercurial_adapter.rb:233:in `unescape'
App 2260378 output: lib/redmine/scm/adapters/mercurial_adapter.rb:233:in `block in each_revision'
App 2260378 output: lib/redmine/scm/adapters/mercurial_adapter.rb:203:in `each'
App 2260378 output: lib/redmine/scm/adapters/mercurial_adapter.rb:203:in `each_revision'
App 2260378 output: app/models/repository/mercurial.rb:194:in `block in fetch_changesets'
App 2260378 output: app/models/repository/mercurial.rb:193:in `step'
App 2260378 output: app/models/repository/mercurial.rb:193:in `fetch_changesets'
App 2260378 output: app/controllers/repositories_controller.rb:87:in `show'
App 2260378 output: lib/redmine/sudo_mode.rb:61:in `sudo_mode'

</pre>
--------------------------------------------------------------------------------
I have confirmed this issue. Applying the patch(attachment:empty_message.diff) solved it. thank you.
I created @MercurialAdapterTest#test_empty_message@ because there was no test.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

Admin Redmine さんがほぼ2年前に更新

  • カテゴリSCM_3 にセット
  • 対象バージョンCandidate for next minor release_33 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0