Mercurial > hg
changeset 41098:cfd95219102d
strip: move attributes shortcut assigned earlier
This series will add support for "soft" stripping using the archived phase in
addition to the usual heavy weight revlog stripping. First, we need to
refactor the strip function to extract logic common to the "soft-strip" case.
We are about to extract bits of the strip function into separate functions.
Those blocks of code contain variables for frequently accessed attributes. We
move those variables outside of the soon to be moved blocks.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Wed, 02 Jan 2019 05:02:25 +0100 |
parents | 6a63ba61e71f |
children | e80329a3952c |
files | mercurial/repair.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/repair.py Thu Dec 27 17:16:40 2018 +0530 +++ b/mercurial/repair.py Wed Jan 02 05:02:25 2019 +0100 @@ -108,8 +108,9 @@ repo = repo.unfiltered() repo.destroying() + vfs = repo.vfs + cl = repo.changelog - cl = repo.changelog # TODO handle undo of merge sets if isinstance(nodelist, str): nodelist = [nodelist] @@ -169,7 +170,6 @@ # create a changegroup for all the branches we need to keep backupfile = None - vfs = repo.vfs node = nodelist[-1] if backup: backupfile = backupbundle(repo, stripbases, cl.heads(), node, topic)