Mercurial > hg
changeset 31329:6ce67d3941fc
histedit: directly use repo.vfs.join
The 'repo.join' method is about to be deprecated.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Wed, 08 Mar 2017 16:51:43 -0800 |
parents | ab45421285d0 |
children | 74ee10702bbf |
files | hgext/histedit.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/histedit.py Wed Mar 08 16:51:36 2017 -0800 +++ b/hgext/histedit.py Wed Mar 08 16:51:43 2017 -0800 @@ -1171,7 +1171,7 @@ # Recover our old commits if necessary if not state.topmost in repo and state.backupfile: - backupfile = repo.join(state.backupfile) + backupfile = repo.vfs.join(state.backupfile) f = hg.openpath(ui, backupfile) gen = exchange.readbundle(ui, f, backupfile) with repo.transaction('histedit.abort') as tr: @@ -1357,7 +1357,7 @@ # Save edit rules in .hg/histedit-last-edit.txt in case # the user needs to ask for help after something # surprising happens. - f = open(repo.join('histedit-last-edit.txt'), 'w') + f = open(repo.vfs.join('histedit-last-edit.txt'), 'w') f.write(rules) f.close() @@ -1598,7 +1598,7 @@ extensions.wrapfunction(repair, 'strip', stripwrapper) def summaryhook(ui, repo): - if not os.path.exists(repo.join('histedit-state')): + if not os.path.exists(repo.vfs.join('histedit-state')): return state = histeditstate(repo) state.read()