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

login
register
mail settings
Submitter Matt Harbison
Date April 5, 2015, 2:34 a.m.
Message ID <978813e773a6cbc75a99.1428201259@Envy>
Download mbox | patch
Permalink /patch/8499/
State Accepted
Headers show

Comments

Matt Harbison - April 5, 2015, 2:34 a.m.
# HG changeset patch
# User Matt Harbison <matt_harbison@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.

Patch

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