##// END OF EJS Templates
Mercurial: addeed mercurial 4.9 support
marcink -
r656:7cf7cf22 default
parent child Browse files
Show More
@@ -316,11 +316,11 b' self: super: {'
316 316 };
317 317 };
318 318 "mercurial" = super.buildPythonPackage {
319 name = "mercurial-4.6.2";
319 name = "mercurial-4.9";
320 320 doCheck = false;
321 321 src = fetchurl {
322 url = "https://files.pythonhosted.org/packages/d9/fb/c7ecf2b7fd349878dbf45b8390b8db735cef73d49dd9ce8a364b4ca3a846/mercurial-4.6.2.tar.gz";
323 sha256 = "1bv6wgcdx8glihjjfg22khhc52mclsn4kwfqvzbzlg0b42h4xl0w";
322 url = "https://files.pythonhosted.org/packages/1a/bb/fa36ada5f8d05651d30edeeb1b8dc7bf797ea701a77e4842c334246c912d/mercurial-4.9.tar.gz";
323 sha256 = "01ig0464cvy9d87rn274g39frxr0p5q4lxf1xn5k3m24grf0qq0g";
324 324 };
325 325 meta = {
326 326 license = [ pkgs.lib.licenses.gpl1 pkgs.lib.licenses.gpl2Plus ];
@@ -11,7 +11,7 b' hgsubversion==1.9.3'
11 11 hg-evolve==8.0.1
12 12 mako==1.0.7
13 13 markupsafe==1.1.0
14 mercurial==4.6.2
14 mercurial==4.9.0
15 15 msgpack-python==0.5.6
16 16
17 17 pastedeploy==2.0.1
@@ -33,7 +33,7 b' from vcsserver.base import RepoFactory, '
33 33 from vcsserver.hgcompat import (
34 34 archival, bin, clone, config as hgconfig, diffopts, hex,
35 35 hg_url as url_parser, httpbasicauthhandler, httpdigestauthhandler,
36 makepeer, localrepository, match, memctx, exchange, memfilectx, nullrev,
36 makepeer, instance, match, memctx, exchange, memfilectx, nullrev,
37 37 patch, peer, revrange, ui, hg_tag, Abort, LookupError, RepoError,
38 38 RepoLookupError, InterventionRequired, RequirementError)
39 39
@@ -114,7 +114,7 b' class MercurialFactory(RepoFactory):'
114 114
115 115 def _create_repo(self, wire, create):
116 116 baseui = self._create_config(wire["config"])
117 return localrepository(baseui, wire["path"], create)
117 return instance(baseui, wire["path"], create)
118 118
119 119
120 120 class HgRemote(object):
@@ -266,14 +266,14 b' class HgRemote(object):'
266 266 ctx = repo[revision]
267 267 return ctx.description()
268 268
269 @reraise_safe_exceptions
270 def ctx_diff(
271 self, wire, revision, git=True, ignore_whitespace=True, context=3):
272 repo = self._factory.repo(wire)
273 ctx = repo[revision]
274 result = ctx.diff(
275 git=git, ignore_whitespace=ignore_whitespace, context=context)
276 return list(result)
269 # @reraise_safe_exceptions
270 # def ctx_diff(
271 # self, wire, revision, git=True, ignore_whitespace=True, context=3):
272 # repo = self._factory.repo(wire)
273 # ctx = repo[revision]
274 # result = ctx.diff(
275 # git=git, ignore_whitespace=ignore_whitespace, context=context)
276 # return list(result)
277 277
278 278 @reraise_safe_exceptions
279 279 def ctx_files(self, wire, revision):
@@ -638,7 +638,7 b' class HgRemote(object):'
638 638 # case when we want to compare two independent repositories
639 639 if other_path and other_path != wire["path"]:
640 640 baseui = self._factory._create_config(wire["config"])
641 repo = unionrepo.unionrepository(baseui, other_path, wire["path"])
641 repo = unionrepo.makeunionrepository(baseui, other_path, wire["path"])
642 642 else:
643 643 repo = self._factory.repo(wire)
644 644 return list(repo.revs(rev_spec, *args))
@@ -44,7 +44,7 b' from mercurial.error import ('
44 44 LookupError, RepoError, RepoLookupError, Abort, InterventionRequired,
45 45 RequirementError)
46 46 from mercurial.hgweb import hgweb_mod
47 from mercurial.localrepo import localrepository
47 from mercurial.localrepo import instance
48 48 from mercurial.match import match
49 49 from mercurial.mdiff import diffopts
50 50 from mercurial.node import bin, hex
General Comments 0
You need to be logged in to leave comments. Login now