[darcs-devel] [patch1968] fix file path encoding in convert export command
Ganesh Sittampalam
bugs at darcs.net
Sat Jul 4 21:48:58 UTC 2020
Ganesh Sittampalam <ganesh at earth.li> added the comment:
I get a different error now, attached.
__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/patch1968>
__________________________________
-------------- next part --------------
convert_export (Darcs3) (PatienceDiff): [Failed]
|
| # only run if git present
| git --version | grep -i "git version" || exit 200
| + git --version
| + grep -i 'git version'
|
| rm -rf R
| + rm -rf R
| darcs init --repo R # Create our test repos.
| + darcs init --repo R
| cd R
| + cd R
| mkdir d e # Change the working tree.
| + mkdir d e
| echo 'Example content.' > d/f
| + echo 'Example content.'
| darcs record -lam 'Add d/f and e.'
| + darcs record -lam 'Add d/f and e.'
|
| # one more change, this time with non-ASCII file name, comment, and content
| # as well as a space in the file name
| # see http://bugs.darcs.net/issue2359
| echo 'Liebe GrüÃe' > e/'Liebe GrüÃe'
| + echo 'Liebe GrüÃe'
| darcs record -lam 'Add file e/"Liebe GrüÃe"'
| + darcs record -lam 'Add file e/"Liebe GrüÃe"'
|
| git init gitmirror
| + git init gitmirror
|
| darcs convert export --write-marks darcs-to-git.marks > fex
| + darcs convert export --write-marks darcs-to-git.marks
| (cd gitmirror && git fast-import --export-marks=git.marks < ../fex)
| + cd gitmirror
| + git fast-import --export-marks=git.marks
| git-fast-import statistics:
| ---------------------------------------------------------------------
| Alloc'd objects: 5000
| Total objects: 8 ( 1 duplicates )
| blobs : 2 ( 1 duplicates 0 deltas of 0 attempts)
| trees : 4 ( 0 duplicates 1 deltas of 4 attempts)
| commits: 2 ( 0 duplicates 0 deltas of 0 attempts)
| tags : 0 ( 0 duplicates 0 deltas of 0 attempts)
| Total branches: 1 ( 1 loads )
| marks: 1024 ( 2 unique )
| atoms: 4
| Memory total: 2344 KiB
| pools: 2110 KiB
| objects: 234 KiB
| ---------------------------------------------------------------------
| pack_report: getpagesize() = 65536
| pack_report: core.packedGitWindowSize = 1073741824
| pack_report: core.packedGitLimit = 35184372088832
| pack_report: pack_used_ctr = 0
| pack_report: pack_mmap_calls = 0
| pack_report: pack_open_windows = 0 / 0
| pack_report: pack_mapped = 0 / 0
| ---------------------------------------------------------------------
|
|
| darcs mv d/f e/
| + darcs mv d/f e/
| darcs record -am 'Move d/f to e/f.'
| + darcs record -am 'Move d/f to e/f.'
|
| darcs convert export --read-marks darcs-to-git.marks --write-marks darcs-to-git.marks > fex2
| + darcs convert export --read-marks darcs-to-git.marks --write-marks darcs-to-git.marks
| (cd gitmirror && git fast-import --import-marks=git.marks --export-marks=git.marks < ../fex2)
| + cd gitmirror
| + git fast-import --import-marks=git.marks --export-marks=git.marks
| git-fast-import statistics:
| ---------------------------------------------------------------------
| Alloc'd objects: 5000
| Total objects: 4 ( 0 duplicates )
| blobs : 1 ( 0 duplicates 0 deltas of 0 attempts)
| trees : 2 ( 0 duplicates 0 deltas of 2 attempts)
| commits: 1 ( 0 duplicates 0 deltas of 0 attempts)
| tags : 0 ( 0 duplicates 0 deltas of 0 attempts)
| Total branches: 1 ( 1 loads )
| marks: 1024 ( 3 unique )
| atoms: 4
| Memory total: 2344 KiB
| pools: 2110 KiB
| objects: 234 KiB
| ---------------------------------------------------------------------
| pack_report: getpagesize() = 65536
| pack_report: core.packedGitWindowSize = 1073741824
| pack_report: core.packedGitLimit = 35184372088832
| pack_report: pack_used_ctr = 0
| pack_report: pack_mmap_calls = 0
| pack_report: pack_open_windows = 0 / 0
| pack_report: pack_mapped = 0 / 0
| ---------------------------------------------------------------------
|
|
| # restore the git working tree by making a clone
| git clone gitmirror gitmirror-clone
| + git clone gitmirror gitmirror-clone
| Cloning into 'gitmirror-clone'...
| done.
|
| diff e/f gitmirror-clone/e/f
| + diff e/f gitmirror-clone/e/f
| diff e/"Liebe GrüÃe" gitmirror-clone/e/"Liebe GrüÃe"
| + diff 'e/Liebe GrüÃe' 'gitmirror-clone/e/Liebe GrüÃe'
| diff: gitmirror-clone/e/Liebe GrüÃe: No such file or directory
More information about the darcs-devel
mailing list