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

[PATCH 3/4] Optimize stg goto in the pop case.

From
Yann Dirson <ydirson@altern.org>
Date
Nov 23, 2006, 23:17 UTC
Message-ID
<20061123231658.9769.81157.stgit@gandelf.nowhere.earth>
In-Reply-To
<20061123230721.9769.38403.stgit@gandelf.nowhere.earth>
Signed-off-by: Yann Dirson <ydirson@altern.org>
---
 stgit/commands/goto.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/stgit/commands/goto.py b/stgit/commands/goto.py
index 1b62d1c..e129b8d 100644
--- a/stgit/commands/goto.py
+++ b/stgit/commands/goto.py
@@ -45,11 +45,11 @@ def func(parser, options, args):
     check_head_top_equal()
 
     applied = crt_series.get_applied()
-    applied.reverse()
     unapplied = crt_series.get_unapplied()
     patch = args[0]
 
     if patch in applied:
+        applied.reverse()
         patches = applied[:applied.index(patch)]
         pop_patches(patches)
Previous: Yann DirsonNext: Yann Dirson
Message 4 of 6 in “Series short description”
  1. 0/4 Series short descriptionYann Dirson, Nov 23, 2006
  2. 1/4 Make Series::patch_applied public.Yann Dirson, Nov 23, 2006
  3. 2/4 Allows to refresh a non-top applied patch.Yann Dirson, Nov 23, 2006
  4. 3/4 Optimize stg goto in the pop case.Yann Dirson, Nov 23, 2006
  5. 4/4 Bomb out when --ack and --sign are both passed to "refresh".Yann Dirson, Nov 23, 2006
  6. Catalin MarinasNov 24, 2006

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.