unshelve failed to unshelve changes if file status changed from modified to added (merged)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Medium
|
Unassigned | ||
Breezy |
Triaged
|
Medium
|
Unassigned |
Bug Description
C:\Temp>bzr colo-init 1
C:\Temp\1>echo foo > foo.txt
C:\Temp\1>bzr add && bzr ci -m1
adding foo.txt
Committing to: C:/Temp/
added foo.txt
Committed revision 1.
C:\Temp\1>bzr switch -b bar
Tree is up to date at revision 1.
Switched to branch: C:/Temp/
C:\Temp\1>echo bar > bar.txt
C:\Temp\1>bzr add && bzr ci -m2
adding bar.txt
Committing to: C:/Temp/
added bar.txt
Committed revision 2.
C:\Temp\1>echo spam >> bar.txt
C:\Temp\1>bzr st
modified:
bar.txt
C:\Temp\1>bzr diff
=== modified file 'bar.txt'
--- bar.txt 2010-08-02 15:43:03 +0000
+++ bar.txt 2010-08-02 15:43:13 +0000
@@ -1,1 +1,2 @@
bar
+spam
C:\Temp\1>bzr shelve --all
Selected changes:
M bar.txt
Changes shelved with id "1".
C:\Temp\1>bzr switch trunk
Updated to revision 1.
Switched to branch: C:/Temp/
C:\Temp\1>bzr merge colo:bar
+N bar.txt
All changes applied successfully.
C:\Temp\1>bzr st
added:
bar.txt
pending merge tips: (use -v to see all merge revisions)
Alexander Belchenko 2010-08-02 2
C:\Temp\1>bzr shelve --list
1: <no message>
C:\Temp\1>bzr unshelve
Using changes with id "1".
bzr: ERROR: exceptions.
Traceback (most recent call last):
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\shelf.pyo", line 401, in get_unshelver
File "bzrlib\shelf.pyo", line 323, in from_tree_and_shelf
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
IndexError: list index out of range
bzr 2.1.2 on python 2.5.4 (Windows-
arguments: ['C:\\Program Files\\
encoding: 'cp1251', fsenc: 'mbcs', lang: None
plugins:
acad C:\work\
bzrtools C:\Program Files\Bazaar\
colo C:\work\
explorer C:\work\
format1 C:\work\
launchpad C:\Program Files\Bazaar\
qbzr C:\work\
rebase C:\Program Files\Bazaar\
scmproj C:\work\
x_bit C:\work\
*** Bazaar has encountered an internal error. This probably indicates a
bug in Bazaar. You can help us fix it by filing a bug report at
https:/
including this traceback and a description of the problem.
But unshelve in the original branch (bar) worked as expected.
tags: | added: shelf |
tags: | added: check-for-breezy |
Changed in brz: | |
status: | New → Triaged |
importance: | Undecided → Medium |
dupe of bug 514369?