4

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.

ldav1s
  • 15,885
  • 2
  • 53
  • 56
Matt Phillips
  • 11,249
  • 10
  • 46
  • 71
  • Info on Hijacked files: http://publib.boulder.ibm.com/infocenter/cchelp/v7r0m1/index.jsp?topic=/com.ibm.rational.clearcase.doc/topics/c_hijack.htm – brainimus Jun 28 '10 at 01:45

2 Answers2

2

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

David Gelhar
  • 27,873
  • 3
  • 67
  • 84
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.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250