Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
mercurial-devel
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mercurial
mercurial-devel
Commits
609ce91670d0
Commit
609ce91670d0
authored
15 years ago
by
Patrick Mezard
Browse files
Options
Downloads
Patches
Plain Diff
rebase: fix bug where --keepbranches could leave wrong branch in dirstate
Report and original fix by Augie Fackler <durin42@gmail.com>
parent
ea82a23cf887
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
hgext/rebase.py
+1
-0
1 addition, 0 deletions
hgext/rebase.py
tests/test-rebase-keep-branch
+2
-0
2 additions, 0 deletions
tests/test-rebase-keep-branch
tests/test-rebase-keep-branch.out
+2
-0
2 additions, 0 deletions
tests/test-rebase-keep-branch.out
with
5 additions
and
0 deletions
hgext/rebase.py
+
1
−
0
View file @
609ce916
...
...
@@ -172,6 +172,7 @@
user
=
repo
[
rev
].
user
(),
date
=
repo
[
rev
].
date
(),
extra
=
extra
)
repo
.
dirstate
.
setbranch
(
repo
[
newrev
].
branch
())
return
newrev
except
util
.
Abort
:
# Invalidate the previous setparents
...
...
This diff is collapsed.
Click to expand it.
tests/test-rebase-keep-branch
+
2
−
0
View file @
609ce916
...
...
@@ -28,3 +28,5 @@
hg update
-C
3
hg rebase
-b
4
-d
3
--keepbranches
2>&1 |
sed
's/\(saving bundle to \).*/\1/'
hg glog
--template
'{rev}:{desc}:{branches}\n'
echo
'% dirstate branch should be "notdefault"'
hg branch
This diff is collapsed.
Click to expand it.
tests/test-rebase-keep-branch.out
+
2
−
0
View file @
609ce916
...
...
@@ -31,3 +31,5 @@
|
o 0:c1:
% dirstate branch should be "notdefault"
notdefault
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment