tests: remove code to support Mercurial 4.3
authorGregory Szorc <gregory.szorc@gmail.com>
Mon, 12 Feb 2018 16:22:31 -0800
changeset 36161 48797b21882e
parent 36160 9fd8c2a3db5a
child 36162 4224f26c0d35
tests: remove code to support Mercurial 4.3 Now that narrow lives in core, we don't need the legacy support. Differential Revision: https://phab.mercurial-scm.org/D2202
tests/test-narrow-expanddirstate.t
--- a/tests/test-narrow-expanddirstate.t	Mon Feb 12 16:21:34 2018 -0800
+++ b/tests/test-narrow-expanddirstate.t	Mon Feb 12 16:22:31 2018 -0800
@@ -75,7 +75,6 @@
   >   def wrapds(orig, self):
   >     ds = orig(self)
   >     class expandingdirstate(ds.__class__):
-  >       # Mercurial 4.4 uses this version.
   >       @hgutil.propertycache
   >       def _map(self):
   >         ret = super(expandingdirstate, self)._map
@@ -83,15 +82,6 @@
   >             'expandnarrowspec'):
   >           expandnarrowspec(ui, repo, os.environ.get('DIRSTATEINCLUDES'))
   >         return ret
-  >       # Mercurial 4.3.3 and earlier uses this version. It seems that
-  >       # narrowhg does not currently support this version, but we include
-  >       # it just in case backwards compatibility is restored.
-  >       def _read(self):
-  >         ret = super(expandingdirstate, self)._read()
-  >         with repo.wlock(), repo.lock(), repo.transaction(
-  >             'expandnarrowspec'):
-  >           expandnarrowspec(ui, repo, os.environ.get('DIRSTATEINCLUDES'))
-  >         return ret
   >     ds.__class__ = expandingdirstate
   >     return ds
   >   return wrapds