blob: f48429e6ca4fdbc477837b4662e5192c44ed56cd (
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
|
[[!comment format=mdwn
username="skew"
subject="transcript"
date="2015-05-14T04:37:33Z"
content="""
Hey Joey, after playing around a bit more, I noticed that the behavior was happening when I'm in a subdirectory, but not when I'm in the root of the repo. I also managed to reproduce the issue with a new repo (and a different type of remote):
[[!format txt \"\"\"
[john@laptop tmp]$ git init annextest3
Initialized empty Git repository in /home/john/tmp/annextest3/.git/
[john@laptop tmp]$ cd annextest3/
[john@laptop annextest3]$ git annex init laptop
init laptop ok
(Recording state in git...)
[john@laptop annextest3]$ git annex initremote rsyncnet type=rsync rsyncurl=user@server.rsync.net:/path/to/annextest3 encryption=none
initremote rsyncnet ok
(Recording state in git...)
[john@laptop annextest3]$ mkdir docs
[john@laptop annextest3]$ echo \"first version\" > docs/test.txt
[john@laptop annextest3]$ git annex add docs/test.txt
add docs/test.txt ok
(Recording state in git...)
[john@laptop annextest3]$ git annex sync --content
commit ok
copy docs/test.txt copy docs/test.txt (checking rsyncnet...) (to rsyncnet...)
sending incremental file list
./
1a5/
1a5/235/
1a5/235/SHA256E-s14--0533c80dc85756cf8cd5181e68d6520f5ffc4585def452d26f59756a5c2548b1.txt/
1a5/235/SHA256E-s14--0533c80dc85756cf8cd5181e68d6520f5ffc4585def452d26f59756a5c2548b1.txt/SHA256E-s14--0533c80dc85756cf8cd5181e68d6520f5ffc4585def452d26f59756a5c2548b1.txt
14 100% 0.00kB/s 0:00:00 (xfr#1, to-chk=0/5)
ok
(Recording state in git...)
[john@laptop annextest3]$ git annex whereis
whereis docs/test.txt (2 copies)
139b18e5-1fd0-4144-a551-4e997333b8ae -- [rsyncnet]
7187a4c5-d9ae-471d-9b4b-843c37bfb3c3 -- laptop [here]
ok
[john@laptop annextest3]$ git annex unlock docs/test.txt
unlock docs/test.txt (copying...) ok
[john@laptop annextest3]$ echo \"second version\" > docs/test.txt
[john@laptop annextest3]$ git annex add docs/test.txt
add docs/test.txt ok
(Recording state in git...)
[john@laptop annextest3]$ git annex sync --content
commit ok
copy docs/test.txt copy docs/test.txt (checking rsyncnet...) (to rsyncnet...)
sending incremental file list
6ad/
6ad/09f/
6ad/09f/SHA256E-s15--66ed1142ab3b2f1cdb29e8b81c9471444a5d9e6fb657a54d089073ab8bd34e27.txt/
6ad/09f/SHA256E-s15--66ed1142ab3b2f1cdb29e8b81c9471444a5d9e6fb657a54d089073ab8bd34e27.txt/SHA256E-s15--66ed1142ab3b2f1cdb29e8b81c9471444a5d9e6fb657a54d089073ab8bd34e27.txt
15 100% 0.00kB/s 0:00:00 (xfr#1, to-chk=0/5)
ok
(Recording state in git...)
[john@laptop annextest3]$ git annex unused
unused . (checking for unused data...) (checking master...)
Some annexed data is no longer used by any files:
NUMBER KEY
1 SHA256E-s14--0533c80dc85756cf8cd5181e68d6520f5ffc4585def452d26f59756a5c2548b1.txt
(To see where data was previously used, try: git log --stat -S'KEY')
To remove unwanted data: git-annex dropunused NUMBER
ok
[john@laptop annextest3]$ git annex unused --from rsyncnet
unused rsyncnet (checking for unused data...) (checking master...)
Some annexed data on rsyncnet is not used by any files:
NUMBER KEY
1 SHA256E-s14--0533c80dc85756cf8cd5181e68d6520f5ffc4585def452d26f59756a5c2548b1.txt
(To see where data was previously used, try: git log --stat -S'KEY')
To remove unwanted data: git-annex dropunused --from rsyncnet NUMBER
ok
[john@laptop annextest3]$ cd docs/
[john@laptop docs]$ git annex unused
unused . (checking for unused data...) (checking master...)
Some annexed data is no longer used by any files:
NUMBER KEY
1 SHA256E-s14--0533c80dc85756cf8cd5181e68d6520f5ffc4585def452d26f59756a5c2548b1.txt
(To see where data was previously used, try: git log --stat -S'KEY')
To remove unwanted data: git-annex dropunused NUMBER
ok
[john@laptop docs]$ git annex unused --from rsyncnet
unused rsyncnet (checking for unused data...) ok
[john@laptop docs]$ git annex whereis --unused
[john@laptop docs]$ cd ..
[john@laptop annextest3]$ git annex whereis --unused
[john@laptop annextest3]$ git annex unused
unused . (checking for unused data...) (checking master...)
Some annexed data is no longer used by any files:
NUMBER KEY
1 SHA256E-s14--0533c80dc85756cf8cd5181e68d6520f5ffc4585def452d26f59756a5c2548b1.txt
(To see where data was previously used, try: git log --stat -S'KEY')
To remove unwanted data: git-annex dropunused NUMBER
ok
[john@laptop annextest3]$ git annex whereis --unused
whereis SHA256E-s14--0533c80dc85756cf8cd5181e68d6520f5ffc4585def452d26f59756a5c2548b1.txt (2 copies)
139b18e5-1fd0-4144-a551-4e997333b8ae -- [rsyncnet]
7187a4c5-d9ae-471d-9b4b-843c37bfb3c3 -- laptop [here]
ok
[john@laptop annextest3]$
\"\"\"]]
"""]]
|