summaryrefslogtreecommitdiff
path: root/doc/todo/wishlist:___96__git_annex_import__96___--_An_easy_way_to_get_data_into_an_annex/comment_2_56f6972413c6f0d9f414245b6f4d27b9._comment
blob: ccdf2e7048fd3e8da59076aec932e29816ba2dbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
[[!comment format=mdwn
 username="https://www.google.com/accounts/o8/id?id=AItOawl9sYlePmv1xK-VvjBdN-5doOa_Xw-jH4U"
 nickname="Richard"
 subject="comment 2"
 date="2013-07-10T23:25:52Z"
 content="""
Ugh, learn to read, etc...

It's not possible to import from other annexes, though. Importing just the files from an indirect repo does nothing:

    ~/test-annex--foo % git annex status
    supported backends: SHA256E SHA1E SHA512E SHA224E SHA384E SHA256 SHA1 SHA512 SHA224 SHA384 WORM URL
    supported remote types: git S3 bup directory rsync web webdav glacier hook
    repository mode: indirect
    trusted repositories: 0
    semitrusted repositories: 2
            00000000-0000-0000-0000-000000000001 -- web
            8105410b-d8ca-4de4-bb6a-91b9772250dc -- here (richih@adamantium:~/test-annex--foo)
    untrusted repositories: 0
    transfers in progress: none
    available local disk space: 52 gigabytes (+1 megabyte reserved)
    local annex keys: 1
    local annex size: 4 bytes
    known annex keys: 1
    known annex size: 4 bytes
    bloom filter size: 16 mebibytes (0% full)
    backend usage:
            SHA256E: 2
    ~/test-annex--foo % ls -l
    total 4
    lrwxrwxrwx 1 richih richih 178 Jul 11 01:21 bar -> .git/annex/objects/g7/9v/SHA256E-s4--7d865e959b2466918c9863afca942d0fb89d7c9ac0c99bafc3749504ded97730/SHA256E-s4--7d865e959b2466918c9863afca942d0fb89d7c9ac0c99bafc3749504ded97730
    ~/test-annex--foo % cd ../test-annex
    ~/test-annex % git annex status
    supported backends: SHA256E SHA1E SHA512E SHA224E SHA384E SHA256 SHA1 SHA512 SHA224 SHA384 WORM URL
    supported remote types: git S3 bup directory rsync web webdav glacier hook
    repository mode: indirect
    trusted repositories: (merging synced/git-annex into git-annex...)
    0
    semitrusted repositories: 3
            00000000-0000-0000-0000-000000000001 -- web
            7c50da8c-dc76-4b4a-b46d-8dd16385691a -- here (richih@adamantium:~/test-annex)
            d4104a13-a2eb-4f5c-ba54-990ece5c81df -- richih@adamantium:~/test-annex-2
    untrusted repositories: 0
    transfers in progress: none
    available local disk space: 52 gigabytes (+1 megabyte reserved)
    local annex keys: 1
    local annex size: 4 bytes
    known annex keys: 1
    known annex size: 4 bytes
    bloom filter size: 16 mebibytes (0% full)
    backend usage:
            SHA256E: 2
    ~/test-annex % ls -l
    total 4
    lrwxrwxrwx 1 richih richih 178 Jul 11 01:20 foo -> .git/annex/objects/91/9x/SHA256E-s4--b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c/SHA256E-s4--b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c
    ~/test-annex % git annex import ../test-annex--foo/bar
    ~/test-annex % ls -l
    total 4
    lrwxrwxrwx 1 richih richih 178 Jul 11 01:20 foo -> .git/annex/objects/91/9x/SHA256E-s4--b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c/SHA256E-s4--b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c
    ~/test-annex %

"""]]