Don't use merge labels in the ed scripts
PATCH 1/1 Don't use merge labels in the ed scripts
From: Pavel Roskin <[email protected]>
Merge labels keep changing, and they are not required to identify specific lines uniquely for the test purposes.
---
.../tutorial-script/0010-alice-bob-fixup.ed | 2 +- .../tutorial-script/0017-alice-bob-fixup.ed | 4 ++-- .../tutorial-script/0018-alice-charlie-fixup1.ed | 4 ++-- .../tutorial-script/0019-alice-charlie-fixup2.ed | 4 ++-- .../tutorial-script/0021-bob-alice-fixup1.ed | 4 ++-- .../tutorial-script/0022-bob-alice-fixup2.ed | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-)
Documentation/tutorial-script/0010-alice-bob-fixup.ed +1 -1
@@ -1,3 +1,3 @@ -/^<<<<<<< bob/,/^>>>>>>> bobswork/d +/^<<<<<<< /,/^>>>>>>> /d w q
Documentation/tutorial-script/0017-alice-bob-fixup.ed +2 -2
@@ -1,5 +1,5 @@ -/^<<<<<<< Makefile/d +/^<<<<<<< /d /^=======/,/^=======/+1d -/^>>>>>>> \.merge_file_/d +/^>>>>>>> /d w q
Documentation/tutorial-script/0018-alice-charlie-fixup1.ed +2 -2
@@ -1,7 +1,7 @@ -/^<<<<<<< master/d +/^<<<<<<< /d /^rpn\.o:/s/\.h.*$/.h lexer.h/ /^lexer\.o:/s/:.*$/: lexer.h/ -/^=======/,/^>>>>>>> charlie/d +/^=======/,/^>>>>>>> /d w q
Documentation/tutorial-script/0019-alice-charlie-fixup2.ed +2 -2
@@ -1,5 +1,5 @@ -/^<<<<<<< master/,/^=======/d -/^>>>>>>> charlie/d +/^<<<<<<< /,/^=======/d +/^>>>>>>> /d w q
Documentation/tutorial-script/0021-bob-alice-fixup1.ed +2 -2
@@ -1,4 +1,4 @@ -/^<<<<<<< master/,/^=======/d -/^>>>>>>> origin/d +/^<<<<<<< /,/^=======/d +/^>>>>>>> /d w q
Documentation/tutorial-script/0022-bob-alice-fixup2.ed +1 -1
@@ -1,5 +1,5 @@ /^#include "stack\.h"/+1d /^#include "lexer\.h"/+1,/^#include "stack\.h"/d -/^<<<<<<< master/-1,/^>>>>>>> origin/d +/^<<<<<<< /-1,/^>>>>>>> /d w q
Dear diary, on Tue, Mar 21, 2006 at 09:54:14PM CET, I got a letter where Pavel Roskin <[email protected]> said that...
Quoted 6 lines
From: Pavel Roskin <[email protected]>
Merge labels keep changing, and they are not required to identify specific lines uniquely for the test purposes.
Signed-off-by Pavel Roskin <[email protected]>
Well, I sincerely hope that they won't change again. ;-)
Signature · 4 lines
Petr "Pasky" Baudis Stuff: http://pasky.or.cz/ Right now I am having amnesia and deja-vu at the same time. I think I have forgotten this before.
Hi, Petr!
Quoted 10 lines · Petr Baudis
Dear diary, on Tue, Mar 21, 2006 at 09:54:14PM CET, I got a letter where Pavel Roskin <[email protected]> said that...
Quoted 6 lines
From: Pavel Roskin <[email protected]>
Merge labels keep changing, and they are not required to identify specific lines uniquely for the test purposes.
Signed-off-by Pavel Roskin <[email protected]>Well, I sincerely hope that they won't change again. ;-)
Actually, it would be nice to never expose labels starting with ".merge_file_" - cogito should provide more meaningful labels instead.
If you prefer, I'll submit a minimal patch to 0017-alice-bob-fixup.ed instead. Once ".merge_file_" is gone, the "tutorial" testsuite would check that such labels never appear again.
Signature · 2 lines
Regards, Pavel Roskin
Hi,
Dear diary, on Tue, Mar 21, 2006 at 10:44:25PM CET, I got a letter where Pavel Roskin <[email protected]> said that...
Quoted 8 lines · Petr Baudis
Quoted 7 lines
Dear diary, on Tue, Mar 21, 2006 at 09:54:14PM CET, I got a letter where Pavel Roskin <[email protected]> said that...
Quoted 5 lines
From: Pavel Roskin <[email protected]>
Merge labels keep changing, and they are not required to identify specific lines uniquely for the test purposes.
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
Signed-off-by Pavel Roskin <[email protected]>Well, I sincerely hope that they won't change again. ;-)
Actually, it would be nice to never expose labels starting with ".merge_file_" - cogito should provide more meaningful labels instead.
we shouldn't ever expose them, though. If we do, that's a bug.
Quoted 3 lines
If you prefer, I'll submit a minimal patch to 0017-alice-bob-fixup.ed instead. Once ".merge_file_" is gone, the "tutorial" testsuite would check that such labels never appear again.
Curious, it contains the old-style label yet does not fail here now.
Unfortunately I have no time to play with it now. :-( A patch will be most welcome.
Thanks,
Signature · 4 lines
Petr "Pasky" Baudis Stuff: http://pasky.or.cz/ Right now I am having amnesia and deja-vu at the same time. I think I have forgotten this before.
Hi, Petr!
Quoted 6 lines · Petr Baudis
Quoted 4 lines
Quoted 1 line
Well, I sincerely hope that they won't change again. ;-)
Actually, it would be nice to never expose labels starting with ".merge_file_" - cogito should provide more meaningful labels instead.
we shouldn't ever expose them, though. If we do, that's a bug.
It turns out those labels were produced by "git merge". Either "git merge" should be removed from the test, or "cg-reset" should be used after the failure. I prefer the later since it's another test for Cogito.
Once the mess from "git merge" is cleaned up, it turns out that the last merge in the testsuite doesn't fail, and several final fixups are no longer needed. I think it should be OK to remove corresponding code. It has no Cogito commands other than cg-commit, which is already tested elsewhere.
I'm sending you the new patch.
Signature · 2 lines
Regards, Pavel Roskin