RE: Few Questions



Thanks for the reply!

Follow up questions:

1. How can I remove a pulled branch?  I'm not finding the command.

2. Can you confirm that after removing a branch, I can run 'prune' to clean up unreferenced objects?


    1. Is it safe for 2+ processes to perform 'ostree pull --mirror' on the
    same repo, remote and branch concurrently?


The same branch even?  Why would you want to do that?  Are you
trying to increase speed?

No, not for speed. just trying to understand concurrency characteristics of ostree.


In general, concurrency on an OSTree repo is not yet strongly defined;
however, you can rely on commits and pulls of different branches being
safe.

    2. If I add more than 1 remote to a repository and do 'ostree pull
    --mirror', are the hashs in refs/heads/.. unique?  Are objects stored in
    objects/ unique?  Are the hashs unique in general when multiple remotes
    are added?


The hashes in refs/heads are not necessarily unique - it's quite
possible to have the same repository content (i.e. commit objects)
in multiple locations. That happens very often with git.

The data in objects/ though is unique - it's a content addressed
store.

Gotcha. So if an object has the same address (hash) it IS the same object regardless of which remote it is pulled from. Right?



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]