mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
c188adb4b9
Previously, whenever a tree that wasn't the root ('') was stored, we'd prepend a '/' to it. Then, when we'd try retrieving the entry, we'd do so without the leading '/'. This caused data loss because existing tree entries were dropped on the floor. Fix that by only adding '/' if we're adding to a non-empty initial path. This wasn't detected in tests because most of them deal only with files in the root and not ones in subdirectories. |
||
---|---|---|
.. | ||
help | ||
__init__.py | ||
_ssh.py | ||
git_handler.py | ||
gitdirstate.py | ||
gitrepo.py | ||
hg2git.py | ||
hgrepo.py | ||
overlay.py | ||
util.py | ||
verify.py |