[PATCH 4 of 7] largefiles: remove unused keyword argument of copytostore() (API)

FUJIWARA Katsunori foozy at lares.dti.ne.jp
Fri Mar 31 13:41:49 EDT 2017


# HG changeset patch
# User FUJIWARA Katsunori <foozy at lares.dti.ne.jp>
# Date 1490981568 -32400
#      Sat Apr 01 02:32:48 2017 +0900
# Node ID 24fcc76be71a6eede3ecff2bc18a119f649b9ad5
# Parent  30fde597a072c6bc6419fcbdfab4889cb1c72914
largefiles: remove unused keyword argument of copytostore() (API)

AFAIK, 'uploaded' argument of copytostore() (or copytocache(), before
renaming at c65f5b6e26d4) has been never used both on caller and
callee sides, since official release of bundled largefiles extension.

diff --git a/hgext/largefiles/lfutil.py b/hgext/largefiles/lfutil.py
--- a/hgext/largefiles/lfutil.py
+++ b/hgext/largefiles/lfutil.py
@@ -245,7 +245,7 @@ def copyfromcache(repo, hash, filename):
         return False
     return True
 
-def copytostore(repo, revorctx, file, fstandin, uploaded=False):
+def copytostore(repo, revorctx, file, fstandin):
     wvfs = repo.wvfs
     hash = readasstandin(repo[revorctx][fstandin])
     if instore(repo, hash):


More information about the Mercurial-devel mailing list