martinvonz created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D9709

AFFECTED FILES
  mercurial/shelve.py

CHANGE DETAILS

diff --git a/mercurial/shelve.py b/mercurial/shelve.py
--- a/mercurial/shelve.py
+++ b/mercurial/shelve.py
@@ -90,9 +90,6 @@
     def exists(self):
         return self.vfs.exists(self.fname)
 
-    def filename(self):
-        return self.vfs.join(self.fname)
-
     def backupfilename(self):
         def gennames(base):
             yield base
@@ -108,7 +105,7 @@
     def movetobackup(self):
         if not self.backupvfs.isdir():
             self.backupvfs.makedir()
-        util.rename(self.filename(), self.backupfilename())
+        util.rename(self.vfs.join(self.fname), self.backupfilename())
 
 
 class Shelf(object):



To: martinvonz, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to