view tests/test-histedit-edit.out @ 17067:81d681f8bdc1

test-histedit-edit: improve coverage of histedit code
author Augie Fackler <raf@durin42.com>
date Wed, 27 Jun 2012 18:41:14 -0500
parents 168cc52ad7c2
children
line wrap: on
line source

% log before edit
@  changeset:   5:652413bf663e
|  tag:         tip
|  user:        test
|  date:        Thu Jan 01 00:00:00 1970 +0000
|  summary:     f
|
o  changeset:   4:e860deea161a
|  user:        test
|  date:        Thu Jan 01 00:00:00 1970 +0000
|  summary:     e
|
o  changeset:   3:055a42cdd887
|  user:        test
|  date:        Thu Jan 01 00:00:00 1970 +0000
|  summary:     d
|
o  changeset:   2:177f92b77385
|  user:        test
|  date:        Thu Jan 01 00:00:00 1970 +0000
|  summary:     c
|
o  changeset:   1:d2ae7f538514
|  user:        test
|  date:        Thu Jan 01 00:00:00 1970 +0000
|  summary:     b
|
o  changeset:   0:cb9a9f314b8b
   user:        test
   date:        Thu Jan 01 00:00:00 1970 +0000
   summary:     a

% edit the history
0 files updated, 0 files merged, 2 files removed, 0 files unresolved
abort: Make changes as needed, you may commit or record as needed now.
When you are finished, run hg histedit --continue to resume.
% commit, then edit the revision
created new head
0 files updated, 0 files merged, 0 files removed, 0 files unresolved
0 files updated, 0 files merged, 0 files removed, 0 files unresolved
@  changeset:   6:bf757c081cd0
|  tag:         tip
|  user:        test
|  date:        Thu Jan 01 00:00:00 1970 +0000
|  summary:     f
|
o  changeset:   5:d6b15fed32d4
|  user:        test
|  date:        Thu Jan 01 00:00:00 1970 +0000
|  summary:     foobaz
|
o  changeset:   4:1a60820cd1f6
|  user:        test
|  date:        Thu Jan 01 00:00:00 1970 +0000
|  summary:     wat
|
o  changeset:   3:055a42cdd887
|  user:        test
|  date:        Thu Jan 01 00:00:00 1970 +0000
|  summary:     d
|
o  changeset:   2:177f92b77385
|  user:        test
|  date:        Thu Jan 01 00:00:00 1970 +0000
|  summary:     c
|
o  changeset:   1:d2ae7f538514
|  user:        test
|  date:        Thu Jan 01 00:00:00 1970 +0000
|  summary:     b
|
o  changeset:   0:cb9a9f314b8b
   user:        test
   date:        Thu Jan 01 00:00:00 1970 +0000
   summary:     a

% contents of e:
a
0 files updated, 0 files merged, 1 files removed, 0 files unresolved
abort: Make changes as needed, you may commit or record as needed now.
When you are finished, run hg histedit --continue to resume.
A f
0 files updated, 0 files merged, 0 files removed, 0 files unresolved
% log after edit
changeset:   6:bf757c081cd0
tag:         tip
user:        test
date:        Thu Jan 01 00:00:00 1970 +0000
summary:     f

% say we'll change the message, but don't.
0 files updated, 0 files merged, 1 files removed, 0 files unresolved
0 files updated, 0 files merged, 0 files removed, 0 files unresolved
changeset:   6:bf757c081cd0
tag:         tip
user:        test
date:        Thu Jan 01 00:00:00 1970 +0000
summary:     f

% modify the message
0 files updated, 0 files merged, 1 files removed, 0 files unresolved
0 files updated, 0 files merged, 0 files removed, 0 files unresolved
changeset:   6:0b16746f8e89
tag:         tip
user:        test
date:        Thu Jan 01 00:00:00 1970 +0000
summary:     mess bf757c081cd0 f

% rollback should not work after a histedit
no rollback information available
% EOF