Detect hijacks with only content change in ClearCase snapshot view

前端 未结 1 1538
臣服心动
臣服心动 2020-12-04 00:24

Normally, an update of a snapshot view detects hijacks by examining file size and timestamp. Is there a way in clearcase to detect a file whose size and timestamp is unchang

相关标签:
1条回答
  • 2020-12-04 01:05

    This isn't taken into account by ClearCase, since it assumes that, if the content has changed, the timestamp also has.

    See "How the update operation determines whether a file is hijacked":

    When a version is loaded into a snapshot view, the file size and last-modified time stamp (as reported by the UNIX® or Windows® file system) are recorded in the view database.
    These values are modified each time you check out a file, check in a file, or load a new version into the view.

    The update operation

    When you update a view, the current size and last-modified time stamp of a non-checked-out file are compared with the size and time stamp that it recorded in the view database.
    If either value is different from the value in the view database, the file is considered hijacked.
    Changing only the read-only permission (on UNIX systems) or attribute (on Windows systems) of a non-checked-out file does not necessarily mean that the file is considered hijacked

    The content isn't taken into account here.

    The only instance where I had this case, I simply created another snapshot view and fired up a diff tool (WinMerge, KDiff3, BeyondCompare, ...), comparing the content of the two snapshot views.

    0 讨论(0)
提交回复
热议问题