changeset 39457 | a913d2892e17 |
parent 38178 | 3790efb388ca |
child 41048 | 84d61fdcefa5 |
--- 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)