git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[StGIT PATCH 3/3] Use "stg applied" instead of reading the applied file directly

From
Karl Hasselström <kha@treskal.com>
Date
May 13, 2007, 18:27 UTC
Message-ID
<20070513182730.18810.72629.stgit@yoghurt>
In-Reply-To
<20070513182720.18810.64330.stgit@yoghurt>
From: Karl Hasselström <kha@treskal.com>
Signed-off-by: Karl Hasselström <kha@treskal.com>
---
 t/t1500-float.sh |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/t/t1500-float.sh b/t/t1500-float.sh
index dbcd8ce..814c9bd 100755
--- a/t/t1500-float.sh
+++ b/t/t1500-float.sh
@@ -20,37 +20,37 @@ test_expect_success \
 	 stg new F -m "f" && echo F >f.txt && stg add f.txt && stg refresh &&
 	 stg new G -m "g" && echo G >g.txt && stg add g.txt && stg refresh &&
 	 stg pop &&
-	 test "`echo \`cat .git/patches/master/applied\``" = "A B C D E F"
+	 test "$(echo $(stg applied))" = "A B C D E F"
 	'
 
 test_expect_success \
 	'Float A to top' \
 	'stg float A &&
-	 test "`echo \`cat .git/patches/master/applied\``" = "B C D E F A"
+	 test "$(echo $(stg applied))" = "B C D E F A"
 	'
 test_expect_success \
 	'Float A to top (noop)' \
 	'stg float A &&
-	 test "`echo \`cat .git/patches/master/applied\``" = "B C D E F A"
+	 test "$(echo $(stg applied))" = "B C D E F A"
 	'
 test_expect_success \
 	'Float B C to top' \
 	'stg float B C &&
-	 test "`echo \`cat .git/patches/master/applied\``" = "D E F A B C"
+	 test "$(echo $(stg applied))" = "D E F A B C"
 	'
 test_expect_success \
 	'Float E A to top' \
 	'stg float E A &&
-	 test "`echo \`cat .git/patches/master/applied\``" = "D F B C E A"
+	 test "$(echo $(stg applied))" = "D F B C E A"
 	'
 test_expect_success \
 	'Float E to top' \
 	'stg float E &&
-	 test "`echo \`cat .git/patches/master/applied\``" = "D F B C A E"
+	 test "$(echo $(stg applied))" = "D F B C A E"
 	'
 test_expect_success \
 	'Float G F to top' \
 	'stg float G F &&
-	 test "`echo \`cat .git/patches/master/applied\``" = "D B C A E G F"
+	 test "$(echo $(stg applied))" = "D B C A E G F"
 	'
 test_done
Previous: Karl Hasselström
Message 3 of 3 in “Make patch deletion test more specific”
  1. 1/3 Make patch deletion test more specificKarl Hasselström, May 13, 2007
  2. 2/3 Test patch order, not just number of patchesKarl Hasselström, May 13, 2007
  3. 3/3 Use "stg applied" instead of reading the applied file directlyKarl Hasselström, May 13, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.