git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Yann Dirson <ydirson@altern.org>
To: Catalin Marinas <catalin.marinas@gmail.com>
Cc: git@vger.kernel.org
Subject: [PATCH 1/2] Demonstrate issue #8733.
Date: Wed, 14 Mar 2007 22:34:59 +0100	[thread overview]
Message-ID: <20070314213459.13492.77212.stgit@gandelf.nowhere.earth> (raw)
In-Reply-To: <20070314213020.13492.24840.stgit@gandelf.nowhere.earth>




Signed-off-by: Yann Dirson <ydirson@altern.org>
---

 t/t1003-branch-delete.sh |   40 ++++++++++++++++++++++++++++++++++++++++
 1 files changed, 40 insertions(+), 0 deletions(-)

diff --git a/t/t1003-branch-delete.sh b/t/t1003-branch-delete.sh
new file mode 100755
index 0000000..8625cc5
--- /dev/null
+++ b/t/t1003-branch-delete.sh
@@ -0,0 +1,40 @@
+#!/bin/sh
+#
+# Copyright (c) 2006 Catalin Marinas
+#
+
+test_description='Branch deletion.'
+
+. ./test-lib.sh
+
+test_expect_success \
+    'Create a new branch' \
+    '
+    stg branch --create new &&
+    git rev-parse new~0
+    '
+
+test_expect_success \
+    'Delete the new branch' \
+    'stg branch --delete new'
+
+test_expect_failure \
+    'Check the deleted branch is gone' \
+    'git rev-parse new~0'
+
+test_expect_success \
+    'Rename master branch, and create a new branch' \
+    '
+    git branch -m master a &&
+    stg branch --create b
+    '
+
+test_expect_success \
+    'Delete the new branch' \
+    'stg branch --delete b'
+
+test_expect_failure \
+    'Check the deleted branch is gone' \
+    'git rev-parse b~0'
+
+test_done

  reply	other threads:[~2007-03-14 21:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-14 21:34 [PATCH 0/2] StGit testcases for new issues Yann Dirson
2007-03-14 21:34 ` Yann Dirson [this message]
2007-03-14 21:35 ` [PATCH 2/2] Demonstrate issue #8732 Yann Dirson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070314213459.13492.77212.stgit@gandelf.nowhere.earth \
    --to=ydirson@altern.org \
    --cc=catalin.marinas@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).