Mercurial > hg-stable
changeset 31329:1b0db28dadf1
cmdutil: 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:53:09 -0800 |
parents | 42a7195541a1 |
children | a3a2382b2e1b |
files | mercurial/cmdutil.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Fri Aug 05 14:29:22 2016 +0200 +++ b/mercurial/cmdutil.py Wed Mar 08 16:53:09 2017 -0800 @@ -201,7 +201,7 @@ newlyaddedandmodifiedfiles] backups = {} if tobackup: - backupdir = repo.join('record-backups') + backupdir = repo.vfs.join('record-backups') try: os.mkdir(backupdir) except OSError as err: @@ -3412,7 +3412,7 @@ raise error.Abort(msg, hint=hint) for f, clearable, allowcommit, msg, hint in unfinishedstates: if clearable and repo.vfs.exists(f): - util.unlink(repo.join(f)) + util.unlink(repo.vfs.join(f)) afterresolvedstates = [ ('graftstate',