[PATCH 1 of 5] largefiles: drop os.path reference in lfutil.storepath()

Matt Harbison mharbison72 at gmail.com
Sun Apr 5 02:34:19 UTC 2015


# HG changeset patch
# User Matt Harbison <matt_harbison at yahoo.com>
# Date 1428176580 14400
#      Sat Apr 04 15:43:00 2015 -0400
# Node ID 978813e773a6cbc75a9942e01e5b21dba69faf96
# Parent  4a4018831d2ebc3c9cae9c6613e6a2497b4f0993
largefiles: drop os.path reference in lfutil.storepath()

localrepo.join() can concatenate multiple parts on its own.

diff --git a/hgext/largefiles/lfutil.py b/hgext/largefiles/lfutil.py
--- a/hgext/largefiles/lfutil.py
+++ b/hgext/largefiles/lfutil.py
@@ -168,7 +168,7 @@
     return os.path.exists(storepath(repo, hash))
 
 def storepath(repo, hash):
-    return repo.join(os.path.join(longname, hash))
+    return repo.join(longname, hash)
 
 def copyfromcache(repo, hash, filename):
     '''Copy the specified largefile from the repo or system cache to


More information about the Mercurial-devel mailing list