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
dc342071
Commit
dc342071
authored
2 years ago
by
Kyle Lippincott
Browse files
Options
Downloads
Patches
Plain Diff
amend: add test showing poor behavior when copies are involved
Differential Revision:
https://phab.mercurial-scm.org/D12624
parent
77b5a190
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-amend.t
+17
-0
17 additions, 0 deletions
tests/test-amend.t
with
17 additions
and
0 deletions
tests/test-amend.t
+
17
−
0
View file @
dc342071
...
...
@@ -609,3 +609,20 @@
>
hg
status
>
fi
OK
.
Amending
a
commit
that
has
copies
but
not
specifying
those
copies
shouldn
'
t
cause them to be lost
$ cd $TESTTMP
$ hg init dont-lose-copies; cd dont-lose-copies
$ echo r0 > r0; hg commit -qAm "r0"
$ hg cp r0 r0_copied; hg commit -qm "copy r0"
$ echo hi > new_file_amend_me
$ hg status --change . --copies
A r0_copied
r0
$ hg amend -qA new_file_amend_me
$ hg status --change . --copies
A new_file_amend_me
A r0_copied
r0 (missing-correct-output !)
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