On Wed, 18 Sep 2019 01:15:33 -0400, Dimitar Maznekov <[email protected]> wrote:

So after quick test - it is enough to set usercache location in global
hg config.
But stored there files are usual in .hg/largefiles per repo on old
installation.
Thought for me that could be a bug when if is not setup global usercache
folder to fallback in subfolder largefiles in repo ?

The largefile blobs are always stored per repo under .hg/largefiles- it's not a fallback. The files in there are then copied or hardlinked into the user cache, so that other repos can access those blobs without downloading them again. See the last email for where the default location is. There's no way to disable the usercache IIRC.

On 18.9.2019 г. 8:05, Dimitar Maznekov wrote:

On old system there isn't such variable set? On the new too doesn't
exists?
But on the old HG 3.1.2 works... and have 50+ storages with auto
enable largefile.
How to migrate successfully - just to setup usercache on the new in
/etc/mercurial/hgrc is that right ?


On 17.9.2019 г. 21:00, Matt Harbison wrote:
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]
<mailto:[email protected]>> wrote:

Huh. I would have expected this to just work. Matt, any ideas?

On Sep 17, 2019, at 11:44, [email protected]
<mailto:[email protected]> <[email protected]
<mailto:[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] <mailto:[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]
    <mailto:[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] <mailto:[email protected]>
    https://www.mercurial-scm.org/mailman/listinfo/mercurial


--
*С уважение: Д.Мазнеков*
*Best regards: D.Maznekov*
DevTeam ThermalVision department
Senior IT
Optix Co. Bulgaria
Mob:+359-88-5166659
www.optixco.com
_______________________________________________
Mercurial mailing list
[email protected]
https://www.mercurial-scm.org/mailman/listinfo/mercurial

Reply via email to