Mercurial > hg
diff tests/test-rebase-mq.out @ 7955:c3d4ff03ec72
rebase: keep original mq patch format (Issue1574)
Rebase now doesn't make assumptions about which format has been
used for a mq patch (git or normal).
Before finalizing a patch it keeps track of the original format,
by reading its header, and then restores the format when reimporting
it.
This way it also allows for having mixed styles.
Note: this version corrects a failure in the test
author | Stefano Tortarolo <stefano.tortarolo@gmail.com> |
---|---|
date | Thu, 26 Mar 2009 16:58:50 +0200 |
parents | 808f03f61ebe |
children | 561ff8d9e4f0 |
line wrap: on
line diff
--- a/tests/test-rebase-mq.out Mon Mar 30 18:26:32 2009 +0200 +++ b/tests/test-rebase-mq.out Thu Mar 26 16:58:50 2009 +0200 @@ -77,3 +77,58 @@ @@ -1,1 +1,1 @@ -mq1r1 +mq1r1mq2 + +% Adding one git-style patch and one normal +patch queue now empty +1 files updated, 0 files merged, 0 files removed, 0 files unresolved +% Git patch +P0 (git) + +diff --git a/p b/p +new file mode 100644 +--- /dev/null ++++ b/p +@@ -0,0 +1,1 @@ ++mq1 + +% Normal patch +P1 + +diff -r x p +--- a/p ++++ b/p +@@ -1,1 +1,1 @@ +-mq1 ++mq2 + +% Rebase the applied mq patches +saving bundle to +% And the patches are correct +% Git patch +# HG changeset patch +# User test +# Date +# Node ID +# Parent +P0 (git) + +diff --git a/p b/p +new file mode 100644 +--- /dev/null ++++ b/p +@@ -0,0 +1,1 @@ ++mq1 + +% Normal patch +# HG changeset patch +# User test +# Date +# Node ID +# Parent +P1 + +--- a/p ++++ b/p +@@ -1,1 +1,1 @@ +-mq1 ++mq2