Comment 6 for bug 620684

Revision history for this message
Szilveszter Farkas (phanatic) wrote :

Thanks for the pointer Martin, it was indeed a bad relpath that caused the problem.

By editing dir_exporter() by hand, I could fix the problem:

-mtime = tree.get_file_mtime(tree.path2id(relpath), relpath)
+mtime = tree.get_file_mtime(tree.path2id(osutils.pathjoin(subdir, relpath)), relpath)

relpath is relative to the path I wanted to export, buth path2id expects a path relative to the branch root, so it just blew up when I wanted to export a subdir.

I'll try to find some time to properly test this against current lp:bzr, and also come up with a merge request.