diff options
author | Joey Hess <joeyh@joeyh.name> | 2017-09-06 13:39:33 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2017-09-06 13:45:03 -0400 |
commit | 9dd2651e8e5efbbf3a9cc59cab3afa1fef7446f2 (patch) | |
tree | 31afde6ea8072120ed0bf7643b2f2d968d95b69d /doc | |
parent | f1b255623bc026d1480d44808cfc30507537cda1 (diff) |
record incomplete exports in export.log
Not yet used, but essential for resuming cleanly.
Note that, in normmal operation, only one commit is made to export.log
during an export; the incomplete version only gets to the journal and
is then overwritten.
This commit was supported by the NSF-funded DataLad project.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/internals.mdwn | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/doc/internals.mdwn b/doc/internals.mdwn index 4b24ce443..ccf1e09b6 100644 --- a/doc/internals.mdwn +++ b/doc/internals.mdwn @@ -187,12 +187,21 @@ Tracks what trees have been exported to special remotes by Each line starts with a timestamp, then the uuid of the repository that exported to the special remote, followed by the sha1 of the tree -that was exported, and then by the uuid of the special remote. For example: +that was exported, and then by the uuid of the special remote. - 1317929189.157237s e605dca6-446a-11e0-8b2a-002170d25c55 bb08b1abd207aeecccbc7060e523b011d80cb35b 26339d22-446b-11e0-9101-002170d25c55 +There can also be subsequent sha1s, of trees that have started to be +exported but whose export is not yet complete. The sha1 of the exported +tree can be the empty tree (4b825dc642cb6eb9a060e54bf8d69288fbee4904) +in order to record the beginning of the first export. + +For example: + + 1317929100.012345s e605dca6-446a-11e0-8b2a-002170d25c55 4b825dc642cb6eb9a060e54bf8d69288fbee4904 26339d22-446b-11e0-9101-002170d25c55 bb08b1abd207aeecccbc7060e523b011d80cb35b + 1317929100.012345s e605dca6-446a-11e0-8b2a-002170d25c55 bb08b1abd207aeecccbc7060e523b011d80cb35b 26339d22-446b-11e0-9101-002170d25c55 + 1317929189.157237s e605dca6-446a-11e0-8b2a-002170d25c55 bb08b1abd207aeecccbc7060e523b011d80cb35b 26339d22-446b-11e0-9101-002170d25c55 7c7af825782b7c8706039b855c72709993542be4 1317923000.251111s e605dca6-446a-11e0-8b2a-002170d25c55 7c7af825782b7c8706039b855c72709993542be4 26339d22-446b-11e0-9101-002170d25c55 -(The exported tree is also grafted into the git-annex branch, at +(The trees are also grafted into the git-annex branch, at `export.tree`, to prevent git from garbage collecting it. However, the head of the git-annex branch should never contain such a grafted in tree; the grafted tree is removed in the same commit that updates `export.log`.) |