largefiles: drop os.path reference in lfutil.storepath()
authorMatt Harbison <matt_harbison@yahoo.com>
Sat, 04 Apr 2015 15:43:00 -0400
changeset 24627 f33236c9b025
parent 24626 e767f5aba810
child 24628 a0b47885a1c5
largefiles: drop os.path reference in lfutil.storepath() localrepo.join() can concatenate multiple parts on its own.
hgext/largefiles/lfutil.py
--- a/hgext/largefiles/lfutil.py	Sat Apr 04 11:24:48 2015 -0700
+++ b/hgext/largefiles/lfutil.py	Sat Apr 04 15:43:00 2015 -0400
@@ -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