Added graftTree but it's buggy.

Should use graftTree in Annex.Branch.graftTreeish; it will be faster
than the current implementation there.

Started Annex.Import, but untested and it doesn't yet handle tree
grafting.
This commit is contained in:
Joey Hess 2019-02-21 17:32:59 -04:00
parent 56137ce0d2
commit 8fdea8f444
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
15 changed files with 172 additions and 30 deletions

View file

@ -16,6 +16,11 @@ this.
It will only need to be updated when listContents returns a
ContentIdentifier that is not already known in the database.
* When on an adjusted unlocked branch, need to import the files unlocked.
* What if the remote lists importable filenames that are absolute paths,
or contain a "../" attack?
## race conditions
(Some thoughts about races that the design should cover now, but kept here