Mercurial > hg
changeset 24252:f962692853c0
repair: define explicit local variable, don't reuse a comprehension variable
The node ID used in strip bundle names is currently taken as the last
iterated value in a list comprehension found much earlier in the function.
This change makes the node selection more explicit at the cost of redundancy.
author | Mike Edgar <adgar@google.com> |
---|---|
date | Tue, 10 Mar 2015 16:25:10 -0400 |
parents | a330660b3d71 |
children | 26fa5ff9e660 |
files | mercurial/repair.py |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/repair.py Sat Feb 07 12:49:30 2015 -0800 +++ b/mercurial/repair.py Tue Mar 10 16:25:10 2015 -0400 @@ -137,6 +137,7 @@ # create a changegroup for all the branches we need to keep backupfile = None vfs = repo.vfs + node = nodelist[-1] if backup: backupfile = _bundle(repo, stripbases, cl.heads(), node, topic) repo.ui.status(_("saved backup bundle to %s\n") %