在ClearCase快照视图中检测仅内容更改的劫持 [英] Detect hijacks with only content change in ClearCase snapshot view

查看:33
本文介绍了在ClearCase快照视图中检测仅内容更改的劫持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通常,快照视图的更新通过检查文件大小和时间戳来检测劫持。是否有清除情况下的方法来检测大小和时间戳不变但文件内容已更改的文件?

解决方案

ClearCase并未考虑到这一点,因为它假定如果内容已更改,时间戳也将具有。



请参阅 更新操作如何确定文件是否被劫持


将版本加载到快照视图时,文件大小和最后修改的时间时间戳(由UNIX®或Windows®文件系统报告)记录在视图数据库中。

每次您签出文件,签入文件或加载新文件时,这些值都会被修改。




更新操作




更新视图时,将未签出文件的租金大小和最后修改的时间戳与其在视图数据库中记录的大小和时间戳进行比较。

如果任一值与视图中的值都不相同

仅更改非检出文件的只读权限(在UNIX系统上)或属性(在Windows系统上)并不一定意味着该文件已被劫持。被认为被劫持


此处未考虑内容。



我遇到这种情况的唯一实例是,我仅创建了另一个快照视图并启动了一个差异工具(WinMerge,KDiff3,BeyondCompare等),比较两个快照视图的 content 。 / p>

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 unchanged but the file content has changed?

解决方案

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.

这篇关于在ClearCase快照视图中检测仅内容更改的劫持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆