ClearCase hijack functionality in subversion

試著忘記壹切 提交于 2019-12-30 10:02:15

问题


Is there a way to "hijack" a file in subversion like there is in ClearCase. Googling so far has not given me a definitive answer. For non ClearCase users Hijacking a file means temporarily removing it from version control.


回答1:


SVN operates on a "copy-modify-merge" model, meaning it's always possible to make local modifications to your working copy, without needing to "lock" or "hijack" it.

http://svnbook.red-bean.com/en/1.2/svn.basic.vsn-models.html#svn.basic.vsn-models.copy-merge.sb-1




回答2:


ClearCase has an odd mix of optimistic lock and pessimistic lock.
But hijacking a file (for snapshot view) or eclipsing a file (for dynamic view) concerns only private changes (i.e. changes done without telling ClearCase first).

As David mentions, SVN doesn't follow that model: you modify first, and then tell SVN during the commit step, which will include all files modified.
ClearCase has not a "workspace wide revision", only a file-by-file commit.



来源:https://stackoverflow.com/questions/3129637/clearcase-hijack-functionality-in-subversion

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!