{"thread":{"id":"7251","subject":"[PATCH 0/2] StGit testcases for new issues","startedAt":"2007-03-14T21:34:54Z","lastAt":"2007-03-14T21:35:04Z","messageCount":3,"participants":["Yann Dirson"],"isPatch":true,"patchVersion":1,"patchTotal":2},"messages":[{"id":"37115","messageId":"20070314213020.13492.24840.stgit@gandelf.nowhere.earth","threadId":"7251","inReplyTo":null,"subject":"[PATCH 0/2] StGit testcases for new issues","fromName":"Yann Dirson","fromEmail":"ydirson@altern.org","sentAt":"2007-03-14T21:34:54Z","receivedAt":"2007-03-14T21:34:54Z","isPatch":true,"sender":{"key":"ydirson@altern.org","avatar":"https://avatars.githubusercontent.com/u/1190950?v=4"},"body":"Here are testcases for the 2 issues involving stack deletion and the\nbranch that happens to be named \"master\", that I just reported in the\ngna! tracker.\n\nIt is probably not a good idea to apply them to stgit's master, but it\ncould be useful to setup a (rewinding) branch to hold such testcases.\nMaybe having testcases readily available would help/encourage people\nto step into the project and start to contribute by a bugfix ?\n\n-- \nYann Dirson    <ydirson@altern.org> |\nDebian-related: <dirson@debian.org> |   Support Debian GNU/Linux:\n                                    |  Freedom, Power, Stability, Gratis\n     http://ydirson.free.fr/        | Check <http://www.debian.org/>\n"},{"id":"37116","messageId":"20070314213459.13492.77212.stgit@gandelf.nowhere.earth","threadId":"7251","inReplyTo":"20070314213020.13492.24840.stgit@gandelf.nowhere.earth","subject":"[PATCH 1/2] Demonstrate issue #8733.","fromName":"Yann Dirson","fromEmail":"ydirson@altern.org","sentAt":"2007-03-14T21:34:59Z","receivedAt":"2007-03-14T21:34:59Z","isPatch":true,"sender":{"key":"ydirson@altern.org","avatar":"https://avatars.githubusercontent.com/u/1190950?v=4"},"body":"\n\n\nSigned-off-by: Yann Dirson <ydirson@altern.org>\n---\n\n t/t1003-branch-delete.sh |   40 ++++++++++++++++++++++++++++++++++++++++\n 1 files changed, 40 insertions(+), 0 deletions(-)\n\ndiff --git a/t/t1003-branch-delete.sh b/t/t1003-branch-delete.sh\nnew file mode 100755\nindex 0000000..8625cc5\n--- /dev/null\n+++ b/t/t1003-branch-delete.sh\n@@ -0,0 +1,40 @@\n+#!/bin/sh\n+#\n+# Copyright (c) 2006 Catalin Marinas\n+#\n+\n+test_description='Branch deletion.'\n+\n+. ./test-lib.sh\n+\n+test_expect_success \\\n+    'Create a new branch' \\\n+    '\n+    stg branch --create new &&\n+    git rev-parse new~0\n+    '\n+\n+test_expect_success \\\n+    'Delete the new branch' \\\n+    'stg branch --delete new'\n+\n+test_expect_failure \\\n+    'Check the deleted branch is gone' \\\n+    'git rev-parse new~0'\n+\n+test_expect_success \\\n+    'Rename master branch, and create a new branch' \\\n+    '\n+    git branch -m master a &&\n+    stg branch --create b\n+    '\n+\n+test_expect_success \\\n+    'Delete the new branch' \\\n+    'stg branch --delete b'\n+\n+test_expect_failure \\\n+    'Check the deleted branch is gone' \\\n+    'git rev-parse b~0'\n+\n+test_done\n"},{"id":"37117","messageId":"20070314213504.13492.82355.stgit@gandelf.nowhere.earth","threadId":"7251","inReplyTo":"20070314213020.13492.24840.stgit@gandelf.nowhere.earth","subject":"[PATCH 2/2] Demonstrate issue #8732.","fromName":"Yann Dirson","fromEmail":"ydirson@altern.org","sentAt":"2007-03-14T21:35:04Z","receivedAt":"2007-03-14T21:35:04Z","isPatch":true,"sender":{"key":"ydirson@altern.org","avatar":"https://avatars.githubusercontent.com/u/1190950?v=4"},"body":"\n\n\nSigned-off-by: Yann Dirson <ydirson@altern.org>\n---\n\n t/t1003-branch-delete.sh |   13 +++++++++++++\n 1 files changed, 13 insertions(+), 0 deletions(-)\n\ndiff --git a/t/t1003-branch-delete.sh b/t/t1003-branch-delete.sh\nindex 8625cc5..a5c486e 100755\n--- a/t/t1003-branch-delete.sh\n+++ b/t/t1003-branch-delete.sh\n@@ -37,4 +37,17 @@ test_expect_failure \\\n     'Check the deleted branch is gone' \\\n     'git rev-parse b~0'\n \n+\n+test_expect_success \\\n+    'Create a new stack named \"master\"' \\\n+    'stg branch --create master'\n+\n+test_expect_success \\\n+    'Delete the \"master\" branch' \\\n+    'stg branch --delete master'\n+\n+test_expect_failure \\\n+    'Check the deleted \"master\" branch is gone' \\\n+    'git rev-parse master~0'\n+\n test_done\n"}]}