chiark
/
gitweb
/
~mdw
/
stgit
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
ed0350b
)
Optimize stg goto in the pop case.
author
Yann Dirson
<ydirson@altern.org>
Fri, 24 Nov 2006 22:57:54 +0000
(22:57 +0000)
committer
Catalin Marinas
<catalin.marinas@gmail.com>
Fri, 24 Nov 2006 22:57:54 +0000
(22:57 +0000)
Signed-off-by: Yann Dirson <ydirson@altern.org>
stgit/commands/goto.py
patch
|
blob
|
blame
|
history
diff --git
a/stgit/commands/goto.py
b/stgit/commands/goto.py
index 1b62d1caa483b4a9a18e6dc5e86cd19cd27bbd85..e129b8db1b43f80fd038c656a3c66d061dc1e85e 100644
(file)
--- 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: