~ubuntu-branches/ubuntu/utopic/mercurial/utopic-security

« back to all changes in this revision

Viewing changes to tests/test-histedit-arguments.t

  • Committer: Package Import Robot
  • Author(s): Javi Merino
  • Date: 2013-10-02 23:55:58 UTC
  • mfrom: (1.2.37)
  • Revision ID: package-import@ubuntu.com-20131002235558-410hds2is38gjrqv
Tags: 2.7.2-1
* New upstream release
* Revert breaks of mercurial-git back to << 0.4.0-1 (Closes: #725145)
* Re-enable the testsuite as the tests that timeout can be blacklisted

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
  [255]
71
71
  $ hg up --quiet
72
72
 
 
73
Run on a revision not descendants of the initial parent
 
74
--------------------------------------------------------------------
 
75
 
 
76
Test the message shown for inconsistent histedit state, which may be
 
77
created (and forgotten) by Mercurial earlier than 2.7. This emulates
 
78
Mercurial earlier than 2.7 by renaming ".hg/histedit-state"
 
79
temporarily.
 
80
 
 
81
  $ HGEDITOR=cat hg histedit -r 4 --commands - << EOF
 
82
  > edit 08d98a8350f3 4 five
 
83
  > EOF
 
84
  1 files updated, 0 files merged, 0 files removed, 0 files unresolved
 
85
  reverting alpha
 
86
  Make changes as needed, you may commit or record as needed now.
 
87
  When you are finished, run hg histedit --continue to resume.
 
88
  [1]
 
89
 
 
90
  $ mv .hg/histedit-state .hg/histedit-state.back
 
91
  $ hg update --quiet --clean 2
 
92
  $ mv .hg/histedit-state.back .hg/histedit-state
 
93
 
 
94
  $ hg histedit --continue
 
95
  abort: c8e68270e35a is not an ancestor of working directory
 
96
  (use "histedit --abort" to clear broken state)
 
97
  [255]
 
98
 
 
99
  $ hg histedit --abort
 
100
  $ hg update --quiet --clean
 
101
 
73
102
Test that missing revisions are detected
74
103
---------------------------------------
75
104