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
cf9dbc73
Commit
cf9dbc73
authored
5 years ago
by
Navaneeth Suresh
Browse files
Options
Downloads
Patches
Plain Diff
tests: add test to demonstrate issue6159
Differential Revision:
https://phab.mercurial-scm.org/D6740
parent
0a50a423
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test-bookmarks-pushpull.t
+58
-0
58 additions, 0 deletions
tests/test-bookmarks-pushpull.t
with
58 additions
and
0 deletions
tests/test-bookmarks-pushpull.t
+
58
−
0
View file @
cf9dbc73
...
...
@@ -1322,3 +1322,61 @@
abort:
push
failed
on
remote
[
255
]
#endif
--
test
for
pushing
bookmarks
pointing
to
secret
changesets
Set
up
a
"
remote
"
repo
$
hg
init
issue6159remote
$
cd
issue6159remote
$
echo
a
>
a
$
hg
add
a
$
hg
commit
-
m_
$
hg
bookmark
foo
$
cd
..
Clone
a
local
repo
$
hg
clone
-
q issue6159remote
issue6159local
$
cd
issue6159local
$
hg
up
-
qr foo
$
echo
b
>
b
Move
the
bookmark
"
foo
"
to
point
at
a
secret
changeset
$
hg
commit
-
qAm_
--
config
phases
.
new
-
commit
=
secret
Pushing
the
bookmark
"
foo
"
now
fails
as
it
contains
a
secret
changeset
#if b2-pushkey
$
hg
push
-
r
foo
pushing
to
$TESTTMP
/
issue6159remote
searching
for
changes
no
changes
found
(
ignored
1
secret
changesets
)
abort:
updating
bookmark
foo
failed
!
[
255
]
#endif
#if b2-binary
$
hg
push
-
r
foo
pushing
to
$TESTTMP
/
issue6159remote
searching
for
changes
no
changes
found
(
ignored
1
secret
changesets
)
updating
bookmark
foo
[
1
]
#endif
Now
the
"
remote
"
repo
contains
a
bookmark
pointing
to
a
nonexistent
revision
$
cd
../
issue6159remote
#if b2-pushkey
$
hg
bookmark
*
foo
0
:
1599
bc8b897a
$
hg
log
-
r
1599
bc8b897a
0
:
1599
bc8b897a
_
(
no
-
eol
)
#endif
#if b2-binary
$
hg
bookmark
no
bookmarks
set
$
cat
.
hg
/
bookmarks
cf489fd8a374cab73c2dc19e899bde6fe3a43f8f
foo
$
hg
log
-
r
cf489fd8a374
abort:
unknown
revision
'
cf489fd8a374
'
!
[
255
]
#endif
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