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

login
register
mail settings
Submitter Katsunori FUJIWARA
Date March 31, 2017, 5:41 p.m.
Message ID <24fcc76be71a6eede3ec.1490982109@speaknoevil>
Download mbox | patch
Permalink /patch/19876/
State Accepted
Headers show

Comments

Katsunori FUJIWARA - March 31, 2017, 5:41 p.m.
# HG changeset patch
# User FUJIWARA Katsunori <foozy@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.

Patch

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):