プロジェクト

全般

プロフィール

Vote #69247

完了

CVS diffs do not handle new files properly

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
SCM_3
対象バージョン:
開始日:
2011/02/12
期日:
進捗率:

0%

予定工数:
category_id:
3
version_id:
27
issue_org_id:
7615
author_id:
17498
assigned_to_id:
11192
comments:
4
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

The CVS adapter does not diff new files properly. I've attached a screenshot where the README file is new, but the diff is showing changes from a later revision.

The source of the problem is the base revision used. For example "cvs -d '/cygdrive/c/workspace/redmine/trunk/tmp/test/cvs_repository' rdiff -u -r1 -r1.1 'test/README'" will produce the wrong diff because -r1 is interpreted as a tag. Using -r1.0 is one way to fix the problem.

I've attached a patch that fixes the problem. There was also some code that preventing one line diffs from being shown ... I took it out because it works in this situation, but it may be there for good reason.

By the way, my CVS version is 1.12.13.


journals

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

--------------------------------------------------------------------------------
I create new issue #7618 as SCM common issue.
--------------------------------------------------------------------------------
Fixed by r4939. Thanks.
--------------------------------------------------------------------------------


related_issues

relates,Closed,7618,SCM diffs do not handle one line new files properly

Admin Redmine さんが3年以上前に更新

  • カテゴリSCM_3 にセット
  • 対象バージョン1.2.0_27 にセット

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

いいね!0
いいね!0