Mercurial > hg > mercurial-source
changeset 33664:f65786a02922
bundle2: use "else" instead of checking condition again
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 16 Jun 2017 10:36:43 -0700 |
parents | 4c2a46f89f08 |
children | 0d98b11b8467 |
files | hgext/histedit.py hgext/shelve.py |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/histedit.py +++ b/hgext/histedit.py @@ -1200,7 +1200,7 @@ with repo.transaction('histedit.abort') as tr: if not isinstance(gen, bundle2.unbundle20): gen.apply(repo, 'histedit', 'bundle:' + backupfile) - if isinstance(gen, bundle2.unbundle20): + else: bundle2.applybundle(repo, gen, tr, source='histedit', url='bundle:' + backupfile)