Directories with names ending in '.bup' - including ~/.bup, sigh - didn't
get the .bupl suffix added, thus making their sizes not calculate correctly.
Signed-off-by: Avery Pennarun <apenwarr@gmail.com>
shalist = shalists.pop()
tree = force_tree or w.new_tree(shalist)
if shalists:
- shalists[-1].append(('40000', part, tree))
+ shalists[-1].append(('40000',
+ git.mangle_name(part, 040000, 40000),
+ tree))
else: # this was the toplevel, so put it back for sanity
shalists.append(shalist)
return tree
def size(self):
"""Get this file's size."""
if self._cached_size == None:
- debug1('<<<<File.size() is calculating...\n')
+ debug1('<<<<File.size() is calculating (for %r)...\n' % self.name)
if self.bupmode == git.BUP_CHUNKED:
self._cached_size = _total_size(self.hash)
else: