If `hg config largefiles` on the old system doesn’t show the 'usercache' 
property, then it falls back to a platform specific location:

https://www.mercurial-scm.org/repo/hg/file/5.1/hgext/largefiles/lfutil.py#l73

Obviously you’ll want to use the variables that the server process sees.


> On Sep 17, 2019, at 1:01 PM, Augie Fackler <[email protected]> wrote:
> 
> Huh. I would have expected this to just work. Matt, any ideas?
> 
>> On Sep 17, 2019, at 11:44, [email protected] <[email protected]> wrote:
>> 
>> At existing installation nothing else is configured except largefiles = to 
>> enable it.
>> The largefiles are stored in the root of the.existing repos (.hg/largefiles)
>> Didn't dig anything about usercache paths and respectively largefiles for 
>> days till now
>> 
>> Изпратено от моя Huawei Mobile
>> 
>> 
>> -------- Оригинално съобщение --------
>> Тема: Re: Proper way to migrate HG 3.1.2 to 4.8.2 repos
>> От: Augie Fackler 
>> До: "D.Maznekov" 
>> Як: [email protected]
>> 
>> 
>> It looks like you need to configure a filesystem path related to large files 
>> - maybe look in the .hg/hgrc for relevant [largefiles] things?
>> 
>>> On Sep 14, 2019, at 10:24, D.Maznekov <[email protected]> wrote:
>>> 
>>> Hello
>>> 
>>> I've tried to move all existing repos with largefiles enable from old 
>>> server (Debian 8.11 HG 3.1.2) to new one (Debian 10 HG 4.8.2)
>>> 
>>> That what I've done is to move with rsync but have problem with user pushes 
>>> in repos with largefiles:
>>> 
>>> mod_wsgi (pid=3945): Exception occurred processing WSGI script 
>>> '/var/www/vhost/hg/cgi-bin/hgwebdir.w
>>> 
>>> Traceback (most recent call last):
>>>   File "/usr/lib/python2.7/dist-packages/mercurial/hgweb/hgwebdir_mod.py", 
>>> line 352, in run_wsgi
>>>     for r in self._runwsgi(req, res):
>>>   File "/usr/lib/python2.7/dist-packages/mercurial/hgweb/hgweb_mod.py", 
>>> line 307, in run_wsgi
>>>     for r in self._runwsgi(req, res, repo):
>>>   File "/usr/lib/python2.7/dist-packages/mercurial/hgweb/hgweb_mod.py", 
>>> line 333, in _runwsgi
>>>     rctx, req, res, self.check_perm)
>>>   File "/usr/lib/python2.7/dist-packages/mercurial/wireprotoserver.py", 
>>> line 221, in handlewsgireque
>>> 
>>>     _callhttp(repo, req, res, proto, cmd)
>>>   File "/usr/lib/python2.7/dist-packages/mercurial/wireprotoserver.py", 
>>> line 436, in _callhttp
>>>     rsp = wireprotov1server.dispatch(repo, proto, cmd)
>>>   File "/usr/lib/python2.7/dist-packages/mercurial/wireprotov1server.py", 
>>> line 74, in dispatch
>>>     return func(repo, proto, *args)
>>>   File "/usr/lib/python2.7/dist-packages/mercurial/wireprotov1server.py", 
>>> line 196, in batch
>>>     result = func(repo, proto, *[data[k] for k in keys])
>>>   File "/usr/lib/python2.7/dist-packages/hgext/largefiles/proto.py", line 
>>> 89, in statlfile
>>>     filename = lfutil.findfile(repo, sha)
>>>   File "/usr/lib/python2.7/dist-packages/hgext/largefiles/lfutil.py", line 
>>> 111, in findfile
>>>     elif inusercache(repo.ui, hash):
>>>   File "/usr/lib/python2.7/dist-packages/hgext/largefiles/lfutil.py", line 
>>> 100, in inusercache
>>>     path = usercachepath(ui, hash)
>>>   File "/usr/lib/python2.7/dist-packages/hgext/largefiles/lfutil.py", line 
>>> 71, in usercachepath
>>>     return os.path.join(_usercachedir(ui), hash)
>>>   File "/usr/lib/python2.7/dist-packages/hgext/largefiles/lfutil.py", line 
>>> 97, in _usercachedir
>>>     raise error.Abort(_('unknown %s usercache location') % name)
>>> Abort: unknown largefiles usercache location
>>> Also tried with clone old-repo >> push new-repo but again HTTP 500 error as 
>>> above
>>> 
>>> -- 
>>>  
>>> Best regards: D.Maznekov 
>>> DevTeam ThermalVision department 
>>> Senior IT 
>>> Optix Co. Bulgaria 
>>> www.optixco.com 
>>> 
>>> _______________________________________________
>>> Mercurial mailing list
>>> [email protected]
>>> https://www.mercurial-scm.org/mailman/listinfo/mercurial
>> 
> 
_______________________________________________
Mercurial mailing list
[email protected]
https://www.mercurial-scm.org/mailman/listinfo/mercurial

Reply via email to