Details
Details
- Reviewers
- None
- Group Reviewers
hg-reviewers
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Branch
- default
- Lint
No Linters Available - Unit
No Unit Test Coverage
hg-reviewers |
No Linters Available |
No Unit Test Coverage |
Path | Packages | |||
---|---|---|---|---|
M | tests/test-shelve2.t (8 lines) |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
12a1b78cc8a8 | 464a8c190101 | Matt Harbison | Jan 17 2021, 12:30 AM |
Status | Author | Revision | |
---|---|---|---|
Abandoned | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 |
$ touch .hg/shelved/junk1.patch | $ touch .hg/shelved/junk1.patch | ||||
$ hg shelve -l | $ hg shelve -l | ||||
$ hg unshelve | $ hg unshelve | ||||
abort: no shelved changes to apply! | abort: no shelved changes to apply! | ||||
[20] | [20] | ||||
$ hg shelve -d junk1 | $ hg shelve -d junk1 | ||||
abort: shelved change 'junk1' not found | abort: shelved change 'junk1' not found | ||||
[10] | [10] | ||||
$ find .hg/shelve* | $ find .hg/shelve* | sort | ||||
.hg/shelved | .hg/shelved | ||||
.hg/shelved/junk1.patch | .hg/shelved/junk1.patch | ||||
# A .hg file without a .patch file | # A .hg file without a .patch file | ||||
$ touch .hg/shelved/junk2.hg | $ touch .hg/shelved/junk2.hg | ||||
$ hg shelve -l | $ hg shelve -l | ||||
$ hg unshelve | $ hg unshelve | ||||
abort: no shelved changes to apply! | abort: no shelved changes to apply! | ||||
[20] | [20] | ||||
$ hg shelve -d junk2 | $ hg shelve -d junk2 | ||||
abort: shelved change 'junk2' not found | abort: shelved change 'junk2' not found | ||||
[10] | [10] | ||||
$ find .hg/shelve* | $ find .hg/shelve* | sort | ||||
.hg/shelved | .hg/shelved | ||||
.hg/shelved/junk1.patch | .hg/shelved/junk1.patch | ||||
.hg/shelved/junk2.hg | .hg/shelved/junk2.hg | ||||
# A file with an unexpected extension | # A file with an unexpected extension | ||||
$ touch .hg/shelved/junk3 | $ touch .hg/shelved/junk3 | ||||
$ hg shelve -l | $ hg shelve -l | ||||
$ hg unshelve | $ hg unshelve | ||||
abort: no shelved changes to apply! | abort: no shelved changes to apply! | ||||
[20] | [20] | ||||
$ hg shelve -d junk3 | $ hg shelve -d junk3 | ||||
abort: shelved change 'junk3' not found | abort: shelved change 'junk3' not found | ||||
[10] | [10] | ||||
$ find .hg/shelve* | $ find .hg/shelve* | sort | ||||
.hg/shelved | .hg/shelved | ||||
.hg/shelved/junk1.patch | .hg/shelved/junk1.patch | ||||
.hg/shelved/junk3 | |||||
.hg/shelved/junk2.hg | .hg/shelved/junk2.hg | ||||
.hg/shelved/junk3 | |||||
$ cd .. | $ cd .. | ||||
Unshelve respects --keep even if user intervention is needed | Unshelve respects --keep even if user intervention is needed | ||||
$ hg init unshelvekeep && cd unshelvekeep | $ hg init unshelvekeep && cd unshelvekeep | ||||
$ echo 1 > file && hg ci -Am 1 | $ echo 1 > file && hg ci -Am 1 | ||||
adding file | adding file | ||||
$ echo 2 >> file | $ echo 2 >> file |