From: Yann Dirson Date: Thu, 23 Nov 2006 23:17:03 GMT Subject: [PATCH 3/4] Optimize stg goto in the pop case. Message-ID: <20061123231658.9769.81157.stgit@gandelf.nowhere.earth> In-Reply-To: <20061123230721.9769.38403.stgit@gandelf.nowhere.earth> Signed-off-by: Yann Dirson --- 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)