Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OpenVMS
Mercurial
hg
Commits
5ed6efedc457
Commit
5ed6efedc457
authored
4 years ago
by
Martin von Zweigbergk
Browse files
Options
Downloads
Patches
Plain Diff
repoview: don't crash if mergestate points to non-existent node
Differential Revision:
https://phab.mercurial-scm.org/D9078
parent
5a555d6e0d90
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
mercurial/repoview.py
+4
-2
4 additions, 2 deletions
mercurial/repoview.py
tests/test-obsolete.t
+3
-3
3 additions, 3 deletions
tests/test-obsolete.t
with
7 additions
and
5 deletions
mercurial/repoview.py
+
4
−
2
View file @
5ed6efed
...
...
@@ -70,8 +70,10 @@
ms
=
mergestate
.
mergestate
.
read
(
repo
)
if
ms
.
active
():
pinned
.
add
(
ms
.
localctx
.
rev
())
pinned
.
add
(
ms
.
otherctx
.
rev
())
for
node
in
(
ms
.
local
,
ms
.
other
):
rev
=
cl
.
index
.
get_rev
(
node
)
if
rev
is
not
None
:
pinned
.
add
(
rev
)
return
pinned
...
...
This diff is collapsed.
Click to expand it.
tests/test-obsolete.t
+
3
−
3
View file @
5ed6efed
...
...
@@ -1826,5 +1826,5 @@
ancestor
path:
file
(
node
bc7ebe2d260cff30d2a39a130d84add36216f791
)
other
path:
file
(
node
b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3
)
extra:
ancestorlinknode
=
b73b8c9a4ab4da89a5a35a6f10dfb13edc84ca37
BROKEN:
We
should
be
able
to
see
the
log
(
without
the
deleted
commit
,
of
course
)
We
should
be
able
to
see
the
log
(
without
the
deleted
commit
,
of
course
)
$
hg
log
-
G
...
...
@@ -1830,4 +1830,4 @@
$
hg
log
-
G
abort:
unknown
revision
'
b73b8c9a4ab4da89a5a35a6f10dfb13edc84ca37
'
!
[
255
]
@
0
:
f53e9479dce5
(
draft
)
[
tip
]
first
$
cd
..
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