Skip to content
Snippets Groups Projects
  • Martin von Zweigbergk's avatar
    fb92927f
    treemanifests: fix streaming clone · fb92927f
    Martin von Zweigbergk authored
    Similar to the previous patch, the .hg/store/meta/ directory does not
    get copied when when using "hg clone --uncompressed". Fix by including
    "meta/" in store.datafiles(). This seems safe to do, as there are only
    a few users of this method. "hg manifest" already filters the paths by
    "data/" prefix. The calls from largefiles also seem safe. The use in
    verify needs updating to prevent it from mistaking dirlogs for
    orphaned filelogs. That change is included in this patch.
    
    Since the dirlogs will now be in the fncache when using fncachestore,
    let's also update debugrebuildfncache(). That will also allow any
    existing treemanifest repos to get their dirlogs into the fncache.
    
    Also update test-treemanifest.t to use an a directory name that
    requires dot-encoding and uppercase-encoding so we test that the path
    encoding works.
    fb92927f
    History
    treemanifests: fix streaming clone
    Martin von Zweigbergk authored
    Similar to the previous patch, the .hg/store/meta/ directory does not
    get copied when when using "hg clone --uncompressed". Fix by including
    "meta/" in store.datafiles(). This seems safe to do, as there are only
    a few users of this method. "hg manifest" already filters the paths by
    "data/" prefix. The calls from largefiles also seem safe. The use in
    verify needs updating to prevent it from mistaking dirlogs for
    orphaned filelogs. That change is included in this patch.
    
    Since the dirlogs will now be in the fncache when using fncachestore,
    let's also update debugrebuildfncache(). That will also allow any
    existing treemanifest repos to get their dirlogs into the fncache.
    
    Also update test-treemanifest.t to use an a directory name that
    requires dot-encoding and uppercase-encoding so we test that the path
    encoding works.