Commits

Augie Fackler  committed 6dd1e9d

Test for editing changesets with no commit messages.

Test bundle provided by Robert Altman<robert@AltmanSoftwareDesign.com>,
produced with a conversion tool.

  • Participants
  • Parent commits 02a8480

Comments (0)

Files changed (3)

File tests/missing-comment.hg

Binary file added.

File tests/test-histedit-commute

 EOF
 hg histedit --commands "$EDITED" --rev -2 2>&1 | fixbundle
 hg log --graph
+
+echo % should also work if a commit message is missing
+BUNDLE="$TESTDIR/missing-comment.hg"
+hg init missing
+cd missing
+hg unbundle $BUNDLE
+hg co tip
+hg log --graph
+hg histedit 0

File tests/test-histedit-commute.out

    date:        Thu Jan 01 00:00:00 1970 +0000
    summary:     a
 
+% should also work if a commit message is missing
+adding changesets
+adding manifests
+adding file changes
+added 3 changesets with 3 changes to 1 files
+(run 'hg update' to get a working copy)
+1 files updated, 0 files merged, 0 files removed, 0 files unresolved
+@  changeset:   2:bd22688093b3
+|  tag:         tip
+|  user:        Robert Altman <robert.altman@telventDTN.com>
+|  date:        Mon Nov 28 16:40:04 2011 +0000
+|  summary:     Update file.
+|
+o  changeset:   1:3b3e956f9171
+|  user:        Robert Altman <robert.altman@telventDTN.com>
+|  date:        Mon Nov 28 16:37:57 2011 +0000
+|
+o  changeset:   0:141947992243
+   user:        Robert Altman <robert.altman@telventDTN.com>
+   date:        Mon Nov 28 16:35:28 2011 +0000
+   summary:     Checked in text file
+
+0 files updated, 0 files merged, 0 files removed, 0 files unresolved