darcs

Issue 1702 optimize --relink doesn't relink the cache.

Title optimize --relink doesn't relink the cache.
Priority bug Status needs-diagnosis/design
Milestone Resolved in
Superseder Nosy List MaicoLeberle, darcs-devel, dmitry.kurochkin, kowey, mdiaz, twb
Assigned To MaicoLeberle
Topics Hashed, Performance

Created on 2009-11-24.06:02:09 by twb, last changed 2018-10-03.18:29:44 by bfrk.

Messages
msg9479 (view) Author: twb Date: 2009-11-24.06:02:04
I noticed that I was missing some hard linking within my Darcs repo
branches.  So using darcs 2.0.2, I did

    darcs optimize --relink --repodir $PWD/foo --sibling $PWD/bar --sibling $PWD/baz ...

For each branch (--repodir), with all branches as --sibling arguments.
Afterwards, I checked an example file's hard linking, and I find that
everything is hard linked together now -- except the cache!

    $ ssh fs find -name 0000000064-f95a452bd280282a6c428fe1020374232fe229bb67d0e553ffdd6eb13bab645d -ls | sort
    8636648    4 -rw-rw-r--   1 twb      cyber          82 Nov 23 17:23 ./.Auto/.cache/darcs/patches/0000000064-f95a452bd280282a6c428fe1020374232fe229bb67d0e553ffdd6eb13bab645d
    8837030    4 -rw-rw-r--  13 twb      cyber          82 Aug 28 11:34 ./Desktop/Darcs/darcs+droundy/_darcs/patches/0000000064-f95a452bd280282a6c428fe1020374232fe229bb67d0e553ffdd6eb13bab645d
    8837030    4 -rw-rw-r--  13 twb      cyber          82 Aug 28 11:34 ./Desktop/Darcs/darcs+hashed-storage/_darcs/patches/0000000064-f95a452bd280282a6c428fe1020374232fe229bb67d0e553ffdd6eb13bab645d
    8837030    4 -rw-rw-r--  13 twb      cyber          82 Aug 28 11:34 ./Desktop/Darcs/darcs+issue1478-haskeline-prompts/_darcs/patches/0000000064-f95a452bd280282a6c428fe1020374232fe229bb67d0e553ffdd6eb13bab645d
    8837030    4 -rw-rw-r--  13 twb      cyber          82 Aug 28 11:34 ./Desktop/Darcs/darcs+twb.~1~/_darcs/patches/0000000064-f95a452bd280282a6c428fe1020374232fe229bb67d0e553ffdd6eb13bab645d
    8837030    4 -rw-rw-r--  13 twb      cyber          82 Aug 28 11:34 ./Desktop/Darcs/darcs+user-manual.~0~/_darcs/patches/0000000064-f95a452bd280282a6c428fe1020374232fe229bb67d0e553ffdd6eb13bab645d
    8837030    4 -rw-rw-r--  13 twb      cyber          82 Aug 28 11:34 ./Desktop/Darcs/darcs+user-manual.~15~/_darcs/patches/0000000064-f95a452bd280282a6c428fe1020374232fe229bb67d0e553ffdd6eb13bab645d
    8837030    4 -rw-rw-r--  13 twb      cyber          82 Aug 28 11:34 ./Desktop/Darcs/darcs+user-manual.~1~/_darcs/patches/0000000064-f95a452bd280282a6c428fe1020374232fe229bb67d0e553ffdd6eb13bab645d
    8837030    4 -rw-rw-r--  13 twb      cyber          82 Aug 28 11:34 ./Desktop/Darcs/darcs+user-manual.~2~/_darcs/patches/0000000064-f95a452bd280282a6c428fe1020374232fe229bb67d0e553ffdd6eb13bab645d
    8837030    4 -rw-rw-r--  13 twb      cyber          82 Aug 28 11:34 ./Desktop/Darcs/darcs+user-manual.~3~/_darcs/patches/0000000064-f95a452bd280282a6c428fe1020374232fe229bb67d0e553ffdd6eb13bab645d
    8837030    4 -rw-rw-r--  13 twb      cyber          82 Aug 28 11:34 ./Desktop/Darcs/darcs+user-manual.~4~/_darcs/patches/0000000064-f95a452bd280282a6c428fe1020374232fe229bb67d0e553ffdd6eb13bab645d
    8837030    4 -rw-rw-r--  13 twb      cyber          82 Aug 28 11:34 ./Desktop/Darcs/darcs.~1~/_darcs/patches/0000000064-f95a452bd280282a6c428fe1020374232fe229bb67d0e553ffdd6eb13bab645d
    8837030    4 -rw-rw-r--  13 twb      cyber          82 Aug 28 11:34 ./Desktop/Darcs/darcs/_darcs/patches/0000000064-f95a452bd280282a6c428fe1020374232fe229bb67d0e553ffdd6eb13bab645d
    8837030    4 -rw-rw-r--  13 twb      cyber          82 Aug 28 11:34 ./Desktop/Darcs/delete-me/_darcs/patches/0000000064-f95a452bd280282a6c428fe1020374232fe229bb67d0e553ffdd6eb13bab645d

After re-running the same "darcs optimize" operations with 2.3.0, and
the problem remained the same.
msg9480 (view) Author: kowey Date: 2009-11-24.10:50:16
Sounds like something we could make a test case for.
msg9486 (view) Author: twb Date: 2009-11-24.13:43:39
I'll write the test case (RSN).  It ought to be straightforward.
msg9510 (view) Author: twb Date: 2009-11-30.06:26:58
Functional test implemented as patch100.
msg19193 (view) Author: gh Date: 2016-04-23.22:24:02
The test happens to work now; marking as resolved.
msg20359 (view) Author: bfrk Date: 2018-10-03.18:29:42
The test was broken and therefore skipped, see Patch1739. It fails 
now.
History
Date User Action Args
2009-11-24 06:02:09twbcreate
2009-11-24 10:50:21koweysetpriority: bug
status: unknown -> needs-reproduction
topic: + Performance, Hashed
messages: + msg9480
nosy: + kowey
2009-11-24 13:43:42twbsetassignedto: twb
messages: + msg9486
2009-11-30 06:27:00twbsetmessages: + msg9510
2009-11-30 06:27:20twbsetassignedto: twb -> (no value)
2014-03-22 23:59:03ghsetassignedto: mdiaz
nosy: + mdiaz
2015-03-27 22:36:59ghsetassignedto: mdiaz -> MaicoLeberle
nosy: + MaicoLeberle
2016-04-23 22:24:03ghsetstatus: needs-reproduction -> resolved
messages: + msg19193
2018-10-03 18:29:44bfrksetstatus: resolved -> needs-diagnosis/design
messages: + msg20359