Skip to content
Snippets Groups Projects
Commit 623cb724c3d0 authored by Siddharth Agarwal's avatar Siddharth Agarwal
Browse files

hg2git: in _init_dirs, store keys without leading '/' (issue103)

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.
parent 5c7943ca051f
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment