diff -r 8d858fbf2759 -r a913d2892e17 hgext/lfs/wireprotolfsserver.py --- a/hgext/lfs/wireprotolfsserver.py Tue Sep 04 22:29:38 2018 -0400 +++ b/hgext/lfs/wireprotolfsserver.py Thu Sep 06 00:51:21 2018 -0400 @@ -204,6 +204,10 @@ # verified as the file is streamed to the caller. try: verifies = store.verify(oid) + if verifies and action == 'upload': + # The client will skip this upload, but make sure it remains + # available locally. + store.linkfromusercache(oid) except IOError as inst: if inst.errno != errno.ENOENT: _logexception(req)