Fix interaction between share and evolve extensions. Bump revision.
This commit is contained in:
parent
a438f59270
commit
22f0a754da
4 changed files with 57 additions and 3 deletions
|
@ -1,8 +1,8 @@
|
|||
# $NetBSD: Makefile,v 1.4 2019/03/06 14:09:10 wiz Exp $
|
||||
# $NetBSD: Makefile,v 1.5 2019/04/11 13:27:55 joerg Exp $
|
||||
|
||||
DISTNAME= hg-evolve-8.4.0
|
||||
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
|
||||
PKGREVISION= 1
|
||||
PKGREVISION= 2
|
||||
CATEGORIES= devel scm
|
||||
MASTER_SITES= ${MASTER_SITE_PYPI:=h/hg-evolve/}
|
||||
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
$NetBSD: distinfo,v 1.2 2019/03/06 13:11:56 joerg Exp $
|
||||
$NetBSD: distinfo,v 1.3 2019/04/11 13:27:55 joerg Exp $
|
||||
|
||||
SHA1 (hg-evolve-8.4.0.tar.gz) = 35d050bace70c408f9b46b82093c48262e626fe6
|
||||
RMD160 (hg-evolve-8.4.0.tar.gz) = 9c00c54ca9a72f1eb177c948ed40a24fd8c5b966
|
||||
SHA512 (hg-evolve-8.4.0.tar.gz) = fa3769ff6d884c5733024d5e8f4474c41b72ad811f4176216f60834cec65d831e78b78ebf15568113953da691c4075b1cf136e0f3531aab90b1afdf5e638b5e1
|
||||
Size (hg-evolve-8.4.0.tar.gz) = 738359 bytes
|
||||
SHA1 (patch-hgext3rd_evolve_obsdiscovery.py) = 73ec53bd98f1c7047008487278c2ce8dce5691ed
|
||||
SHA1 (patch-hgext3rd_evolve_stablerangecache.py) = 576fed4aa2a4899c0a365f04ce8ce06f803d221e
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
$NetBSD: patch-hgext3rd_evolve_obsdiscovery.py,v 1.1 2019/04/11 13:27:55 joerg Exp $
|
||||
|
||||
Fix interaction with share extension.
|
||||
|
||||
--- hgext3rd/evolve/obsdiscovery.py.orig 2019-01-23 00:11:32.000000000 +0000
|
||||
+++ hgext3rd/evolve/obsdiscovery.py
|
||||
@@ -412,12 +412,12 @@ class _obshashcache(obscache.dualsourcec
|
||||
_schemaversion = 3
|
||||
|
||||
_cachename = 'evo-ext-obshashrange' # used for error message
|
||||
- _filename = 'cache/evoext_obshashrange_v2.sqlite'
|
||||
+ _filename = 'evoext_obshashrange_v2.sqlite'
|
||||
|
||||
def __init__(self, repo):
|
||||
super(_obshashcache, self).__init__()
|
||||
self._vfs = repo.vfs
|
||||
- self._path = repo.vfs.join(self._filename)
|
||||
+ self._path = repo.cachevfs.join(self._filename)
|
||||
self._new = set()
|
||||
self._valid = True
|
||||
self._repo = weakref.ref(repo.unfiltered())
|
|
@ -0,0 +1,31 @@
|
|||
$NetBSD: patch-hgext3rd_evolve_stablerangecache.py,v 1.1 2019/04/11 13:27:55 joerg Exp $
|
||||
|
||||
Fix interaction with share extension.
|
||||
|
||||
--- hgext3rd/evolve/stablerangecache.py.orig 2019-01-23 00:11:32.000000000 +0000
|
||||
+++ hgext3rd/evolve/stablerangecache.py
|
||||
@@ -176,7 +176,7 @@ class stablerangesqlbase(stablerange.sta
|
||||
def __init__(self, repo, **kwargs):
|
||||
super(stablerangesqlbase, self).__init__(**kwargs)
|
||||
self._vfs = repo.vfs
|
||||
- self._path = repo.vfs.join(self._cachefile)
|
||||
+ self._path = repo.cachevfs.join(self._cachefile)
|
||||
self._cl = repo.unfiltered().changelog # (okay to keep an old one)
|
||||
self._ondisktiprev = None
|
||||
self._ondisktipnode = None
|
||||
@@ -390,13 +390,13 @@ class stablerangesql(stablerangesqlbase,
|
||||
class mergepointsql(stablerangesql, stablerange.stablerange_mergepoint):
|
||||
|
||||
_schemaversion = 3
|
||||
- _cachefile = 'cache/evoext_stablerange_v2.sqlite'
|
||||
+ _cachefile = 'evoext_stablerange_v2.sqlite'
|
||||
_cachename = 'evo-ext-stablerange-mergepoint'
|
||||
|
||||
class sqlstablerange(stablerangesqlbase, stablerange.stablerange):
|
||||
|
||||
_schemaversion = 1
|
||||
- _cachefile = 'cache/evoext_stablerange_v1.sqlite'
|
||||
+ _cachefile = 'evoext_stablerange_v1.sqlite'
|
||||
|
||||
def warmup(self, repo, upto=None):
|
||||
self._con # make sure the data base is loaded
|
Loading…
Reference in a new issue