##// END OF EJS Templates
rebase: fix bug where --keepbranches could leave wrong branch in dirstate...
Patrick Mezard -
r8266:609ce916 default
parent child Browse files
Show More
@@ -172,6 +172,7 b' def concludenode(repo, rev, p1, p2, stat'
172 user=repo[rev].user(),
172 user=repo[rev].user(),
173 date=repo[rev].date(),
173 date=repo[rev].date(),
174 extra=extra)
174 extra=extra)
175 repo.dirstate.setbranch(repo[newrev].branch())
175 return newrev
176 return newrev
176 except util.Abort:
177 except util.Abort:
177 # Invalidate the previous setparents
178 # Invalidate the previous setparents
@@ -28,3 +28,5 b" echo '% Rebase a branch while preserving"
28 hg update -C 3
28 hg update -C 3
29 hg rebase -b 4 -d 3 --keepbranches 2>&1 | sed 's/\(saving bundle to \).*/\1/'
29 hg rebase -b 4 -d 3 --keepbranches 2>&1 | sed 's/\(saving bundle to \).*/\1/'
30 hg glog --template '{rev}:{desc}:{branches}\n'
30 hg glog --template '{rev}:{desc}:{branches}\n'
31 echo '% dirstate branch should be "notdefault"'
32 hg branch
@@ -31,3 +31,5 b' o 1:c2:'
31 |
31 |
32 o 0:c1:
32 o 0:c1:
33
33
34 % dirstate branch should be "notdefault"
35 notdefault
General Comments 0
You need to be logged in to leave comments. Login now