The snippet you showed works correctly.
You are right about root-id. I see the same behavior even with a file.
[foo]% bzr init
Created a standalone tree (format: 2a)
[foo]% touch x
[foo]% bzr add
adding x
[foo]% bzr shelve --all
Selected changes:
-D x
Changes shelved with id "1".
[foo]% bzr unshelve 1
Using changes with id "1".
bzr: ERROR: No final name for trans_id 'new-1'
file-id: 'tree_root-20100917153546-cwjpp24s675icdbn-1'
root trans-id: None
The snippet you showed works correctly.
You are right about root-id. I see the same behavior even with a file.
[foo]% bzr init
Created a standalone tree (format: 2a)
[foo]% touch x 20100917153546- cwjpp24s675icdb n-1'
[foo]% bzr add
adding x
[foo]% bzr shelve --all
Selected changes:
-D x
Changes shelved with id "1".
[foo]% bzr unshelve 1
Using changes with id "1".
bzr: ERROR: No final name for trans_id 'new-1'
file-id: 'tree_root-
root trans-id: None
[foo]%