From 2cf7e94e933bf3e8091622d7d6730e145cc9bf64 Mon Sep 17 00:00:00 2001 From: Yann Dirson Date: Fri, 24 Nov 2006 22:57:54 +0000 Subject: [PATCH] Optimize stg goto in the pop case. Signed-off-by: Yann Dirson --- stgit/commands/goto.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) elif patch in unapplied: -- 2.11.0