9a67ed0f10
When importing from a special remote, support preferred content expressions that use terms that match on keys (eg "present", "copies=1"). Such terms are ignored when importing, since the key is not known yet. When "standard" or "groupwanted" is used, the terms in those expressions also get pruned accordingly. This does allow setting preferred content to "not (copies=1)" to make a special remote into a "source" type of repository. Importing from it will import all files. Then exporting to it will drop all files from it. In the case of setting preferred content to "present", it's pruned on import, so everything gets imported from it. Then on export, it's applied, and everything in it is left on it, and no new content is exported to it. Since the old behavior on these preferred content expressions was for importtree to error out, there's no backwards compatability to worry about. Except that sync/pull/etc will now import where before it errored out. |
||
---|---|---|
.. | ||
Chunk | ||
ContentIdentifier | ||
Difference | ||
Export | ||
MetaData | ||
PreferredContent | ||
Presence | ||
Remote | ||
SingleValue | ||
Trust | ||
Activity.hs | ||
AdjustedBranchUpdate.hs | ||
Chunk.hs | ||
Config.hs | ||
ContentIdentifier.hs | ||
Difference.hs | ||
Export.hs | ||
File.hs | ||
FsckResults.hs | ||
Group.hs | ||
Import.hs | ||
Line.hs | ||
Location.hs | ||
MapLog.hs | ||
MetaData.hs | ||
Migrate.hs | ||
Multicast.hs | ||
NumCopies.hs | ||
PreferredContent.hs | ||
Presence.hs | ||
Remote.hs | ||
RemoteState.hs | ||
Restage.hs | ||
Schedule.hs | ||
SingleValue.hs | ||
Smudge.hs | ||
Transfer.hs | ||
Transitions.hs | ||
Trust.hs | ||
Unused.hs | ||
Upgrade.hs | ||
UUID.hs | ||
UUIDBased.hs | ||
View.hs | ||
Web.hs |