Test rewind and rewind and continue even though we don't allow them.
[git-central.git] / tests / t2202-6.txt
1 From: author@payflex.com
2 To: commits@list.com
3 Subject: [cbas] topic branch updated. $new_commit_hash
4 X-Git-Refname: refs/heads/topic
5 X-Git-Reftype: branch
6 X-Git-Oldrev: $old_commit_hash
7 X-Git-Newrev: $new_commit_hash
8
9 The branch, topic has been updated
10   discards  $old_commit_hash (commit)
11        via  $new_commit_hash (commit)
12
13 This update added new revisions after undoing existing revisions.  That is
14 to say, the old revision is not a strict subset of the new revision.  This
15 situation occurs when you --force push a change and generate a repository
16 containing something like this:
17
18  * -- * -- B -- O -- O -- O ($old_commit_hash)
19             \
20              N -- N -- N ($new_commit_hash)
21
22 When this happens we assume that you've already had alert emails for all
23 of the O revisions, and so we here report only the revisions in the N
24 branch from the common base, B.
25
26 Those revisions listed above that are new to this repository have
27 not appeared on any other notification email; so we list those
28 revisions in full, below.
29
30 - Log -----------------------------------------------------------------
31 commit $new_commit_hash
32 Author: A U Thor <author@example.com>
33 Date:   $new_commit_date
34
35     rewind and continue branch on topic
36
37 -----------------------------------------------------------------------
38
39 Summary of changes:
40  a |    2 +-
41  1 files changed, 1 insertions(+), 1 deletions(-)
42
43 diff --git a/a b/a
44 index 8516a40..a30ab5b 100644
45 --- a/a
46 +++ b/a
47 @@ -1 +1 @@
48 -create branch 2
49 +rewind and continue branch
50
51
52 hooks/post-receive
53 --
54 cbas