"bzr update" in checkout of empty branch fails and breaks dirstate
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
High
|
Unassigned |
Bug Description
The following shell script:
"""
# Make a branch with zero revisions.
bzr init master
# Check it out
bzr co master slave
# Make a local commit
cd slave
bzr ci --local --unchanged -m "Empty commit."
# Update. Boom!
bzr update
"""
Will trigger the following traceback:
bzr: ERROR: exceptions.
Traceback (most recent call last):
File "/home/
return run_bzr(argv)
File "/home/
ret = run(*run_argv)
File "/home/
return self.run(
File "/home/
tree.unlock()
File "/home/
self.flush()
File "/home/
self.
File "/home/
self.
File "/home/
lines.
File "/home/
return '\0'.join(
TypeError: sequence item 1: expected string, NoneType found
bzr 0.18.0dev0 on python 2.5.1.final.0 (linux2)
arguments: ['/home/
I've reproduced this with current bzr.dev.
A use case that prompts this is An obvious way to create a start a branch for a new project that you want to host remotely is to "bzr init REMOTE_URL" then immediately "bzr checkout REMOTE_URL LOCAL_CHECKOUT".
A workaround would be to do "bzr init LOCAL_CHECKOUT", and once there's at least one revision there, then do "bzr push REMOTE_URL; bzr bind" to create the remote branch and convert the local branch into a checkout.
Changed in bzr: | |
assignee: | Wouter van Heyst (larstiq) → nobody |
status: | In Progress → Confirmed |
tags: | added: dirstate |
subscribe