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.
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) file_mtime( tree.path2id( osutils. pathjoin( subdir, relpath)), relpath)
+mtime = tree.get_
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.