Handle bzr repo with shelves correctly