tests/test-hardlinks.t
changeset 50085 ff12f42415f5
parent 50083 a28cedb26139
child 50193 ab806355fccb
equal deleted inserted replaced
50084:5b9c3ae807c8 50085:ff12f42415f5
   259   2 r4/.hg/store/undo
   259   2 r4/.hg/store/undo
   260   2 r4/.hg/store/undo.backup.fncache (repofncache !)
   260   2 r4/.hg/store/undo.backup.fncache (repofncache !)
   261   2 r4/.hg/store/undo.backup.phaseroots
   261   2 r4/.hg/store/undo.backup.phaseroots
   262   2 r4/.hg/store/undo.backupfiles
   262   2 r4/.hg/store/undo.backupfiles
   263   2 r4/.hg/store/undo.phaseroots
   263   2 r4/.hg/store/undo.phaseroots
   264   [24] r4/\.hg/undo\.backup\.dirstate (re)
   264   2 r4/\.hg/undo\.backup\.dirstate (re)
   265   2 r4/.hg/undo.bookmarks
   265   2 r4/.hg/undo.bookmarks
   266   2 r4/.hg/undo.branch
   266   2 r4/.hg/undo.branch
   267   2 r4/.hg/undo.desc
   267   2 r4/.hg/undo.desc
   268   [24] r4/\.hg/undo\.dirstate (re)
       
   269   2 r4/.hg/wcache/checkisexec (execbit !)
   268   2 r4/.hg/wcache/checkisexec (execbit !)
   270   2 r4/.hg/wcache/checklink-target (symlink !)
   269   2 r4/.hg/wcache/checklink-target (symlink !)
   271   2 r4/.hg/wcache/checknoexec (execbit !)
   270   2 r4/.hg/wcache/checknoexec (execbit !)
   272   2 r4/.hg/wcache/manifestfulltextcache (reporevlogstore !)
   271   2 r4/.hg/wcache/manifestfulltextcache (reporevlogstore !)
   273   2 r4/d1/data1
   272   2 r4/d1/data1
   277 
   276 
   278 Update back to revision 12 in r4 should break hardlink of file f1 and f3:
   277 Update back to revision 12 in r4 should break hardlink of file f1 and f3:
   279 #if hardlink-whitelisted
   278 #if hardlink-whitelisted
   280   $ nlinksdir r4/.hg/undo.backup.dirstate r4/.hg/dirstate
   279   $ nlinksdir r4/.hg/undo.backup.dirstate r4/.hg/dirstate
   281   2 r4/.hg/dirstate
   280   2 r4/.hg/dirstate
   282   4 r4/.hg/undo.backup.dirstate
   281   2 r4/.hg/undo.backup.dirstate
   283 #endif
   282 #endif
   284 
   283 
   285 
   284 
   286   $ hg -R r4 up 12
   285   $ hg -R r4 up 12
   287   2 files updated, 0 files merged, 0 files removed, 0 files unresolved (execbit !)
   286   2 files updated, 0 files merged, 0 files removed, 0 files unresolved (execbit !)
   317   2 r4/.hg/store/undo
   316   2 r4/.hg/store/undo
   318   2 r4/.hg/store/undo.backup.fncache (repofncache !)
   317   2 r4/.hg/store/undo.backup.fncache (repofncache !)
   319   2 r4/.hg/store/undo.backup.phaseroots
   318   2 r4/.hg/store/undo.backup.phaseroots
   320   2 r4/.hg/store/undo.backupfiles
   319   2 r4/.hg/store/undo.backupfiles
   321   2 r4/.hg/store/undo.phaseroots
   320   2 r4/.hg/store/undo.phaseroots
   322   [24] r4/\.hg/undo\.backup\.dirstate (re)
   321   2 r4/\.hg/undo\.backup\.dirstate (re)
   323   2 r4/.hg/undo.bookmarks
   322   2 r4/.hg/undo.bookmarks
   324   2 r4/.hg/undo.branch
   323   2 r4/.hg/undo.branch
   325   2 r4/.hg/undo.desc
   324   2 r4/.hg/undo.desc
   326   [24] r4/\.hg/undo\.dirstate (re)
       
   327   2 r4/.hg/wcache/checkisexec (execbit !)
   325   2 r4/.hg/wcache/checkisexec (execbit !)
   328   2 r4/.hg/wcache/checklink-target (symlink !)
   326   2 r4/.hg/wcache/checklink-target (symlink !)
   329   2 r4/.hg/wcache/checknoexec (execbit !)
   327   2 r4/.hg/wcache/checknoexec (execbit !)
   330   1 r4/.hg/wcache/manifestfulltextcache (reporevlogstore !)
   328   1 r4/.hg/wcache/manifestfulltextcache (reporevlogstore !)
   331   2 r4/d1/data1
   329   2 r4/d1/data1
   335   2 r4/f3 (no-execbit !)
   333   2 r4/f3 (no-execbit !)
   336 
   334 
   337 #if hardlink-whitelisted
   335 #if hardlink-whitelisted
   338   $ nlinksdir r4/.hg/undo.backup.dirstate r4/.hg/dirstate
   336   $ nlinksdir r4/.hg/undo.backup.dirstate r4/.hg/dirstate
   339   1 r4/.hg/dirstate
   337   1 r4/.hg/dirstate
   340   4 r4/.hg/undo.backup.dirstate
   338   2 r4/.hg/undo.backup.dirstate
   341 #endif
   339 #endif
   342 
   340 
   343 Test hardlinking outside hg:
   341 Test hardlinking outside hg:
   344 
   342 
   345   $ mkdir x
   343   $ mkdir x