Exporting subdirs with --per-file-timestamps fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Medium
|
Szilveszter Farkas |
Bug Description
When I try to export a subdir from a branch with --per-file-
$ ./bzr export --per-file-
bzr: ERROR: The file id "None" is not present in the tree <bzrlib.
The corresponding bzr.log entry:
Fri 2011-06-10 15:42:58 +0200
0.072 bazaar version: 2.4.0dev4
0.073 bzr arguments: [u'export', u'--per-
0.121 looking for plugins in /Users/
0.138 looking for plugins in /Users/
0.154 looking for plugins in /Users/
0.158 encoding stdout as sys.stdout encoding 'UTF-8'
0.222 export version <InventoryRevis
0.556 Transferred: 0kB (0.0kB/s r:0kB w:0kB)
0.562 Traceback (most recent call last):
File "/Users/
return the_callable(*args, **kwargs)
File "/Users/
ret = run(*run_argv)
File "/Users/
return self.run(
File "/Users/
return self._operation
File "/Users/
self.cleanups, self.func, *args, **kwargs)
File "/Users/
result = func(*args, **kwargs)
File "/Users/
per_
File "/Users/
per_
File "/Users/
force_
File "/Users/
mtime = tree.get_
File "/Users/
ie = self._inventory
File "/Users/
raise errors.
NoSuchId: The file id "None" is not present in the tree <bzrlib.
The problem lies here:
mtime = tree.get_
When exporting a subdir, relpath will be relative to the subdir, but path2id needs a path relative to the branch root.
Related branches
- John A Meinel: Approve
- Vincent Ladeuil: Approve
- Jelmer Vernooij (community): Approve
-
Diff: 80 lines (+37/-1)4 files modifiedbzrlib/export/dir_exporter.py (+5/-1)
bzrlib/tests/blackbox/test_export.py (+10/-0)
bzrlib/tests/test_export.py (+19/-0)
doc/en/release-notes/bzr-2.4.txt (+3/-0)
Changed in bzr: | |
milestone: | none → 2.4b4 |
status: | In Progress → Fix Released |
importance: | Undecided → Medium |
I have already managed to come up with a fix, but it still needs proper tests.