Show More
@@ -30,7 +30,7 b' from kallithea.lib.vcs.utils.ordered_dic' | |||||
30 | from kallithea.lib.vcs.utils.paths import abspath |
|
30 | from kallithea.lib.vcs.utils.paths import abspath | |
31 | from kallithea.lib.vcs.utils.hgcompat import ( |
|
31 | from kallithea.lib.vcs.utils.hgcompat import ( | |
32 | ui, nullid, match, patch, diffopts, clone, get_contact, |
|
32 | ui, nullid, match, patch, diffopts, clone, get_contact, | |
33 |
localrepo |
|
33 | localrepo, RepoLookupError, Abort, RepoError, hex, scmutil, hg_url, | |
34 | httpbasicauthhandler, httpdigestauthhandler, peer, httppeer, sshpeer, tag |
|
34 | httpbasicauthhandler, httpdigestauthhandler, peer, httppeer, sshpeer, tag | |
35 | ) |
|
35 | ) | |
36 |
|
36 | |||
@@ -364,7 +364,7 b' class MercurialRepository(BaseRepository' | |||||
364 |
|
364 | |||
365 | # Don't try to create if we've already cloned repo |
|
365 | # Don't try to create if we've already cloned repo | |
366 | create = False |
|
366 | create = False | |
367 | return localrepository(self.baseui, self.path, create=create) |
|
367 | return localrepo.localrepository(self.baseui, self.path, create=create) | |
368 | except (Abort, RepoError) as err: |
|
368 | except (Abort, RepoError) as err: | |
369 | if create: |
|
369 | if create: | |
370 | msg = "Cannot create repository at %s. Original error was %s" \ |
|
370 | msg = "Cannot create repository at %s. Original error was %s" \ |
@@ -18,7 +18,6 b' from mercurial.context import memctx, me' | |||||
18 | from mercurial.error import RepoError, RepoLookupError, Abort |
|
18 | from mercurial.error import RepoError, RepoLookupError, Abort | |
19 | from mercurial.hgweb import hgweb_mod |
|
19 | from mercurial.hgweb import hgweb_mod | |
20 | from mercurial.hgweb.common import get_contact |
|
20 | from mercurial.hgweb.common import get_contact | |
21 | from mercurial.localrepo import localrepository |
|
|||
22 | from mercurial.match import match |
|
21 | from mercurial.match import match | |
23 | from mercurial.mdiff import diffopts |
|
22 | from mercurial.mdiff import diffopts | |
24 | from mercurial.node import hex |
|
23 | from mercurial.node import hex | |
@@ -45,9 +44,9 b' if inspect.getargspec(memfilectx.__init_' | |||||
45 |
|
44 | |||
46 |
|
45 | |||
47 | # workaround for 3.3 94ac64bcf6fe and not calling largefiles reposetup correctly |
|
46 | # workaround for 3.3 94ac64bcf6fe and not calling largefiles reposetup correctly | |
48 | localrepository._lfstatuswriters = [lambda *msg, **opts: None] |
|
47 | localrepo.localrepository._lfstatuswriters = [lambda *msg, **opts: None] | |
49 | # 3.5 7699d3212994 added the invariant that repo.lfstatus must exist before hitting overridearchive |
|
48 | # 3.5 7699d3212994 added the invariant that repo.lfstatus must exist before hitting overridearchive | |
50 | localrepository.lfstatus = False |
|
49 | localrepo.localrepository.lfstatus = False | |
51 |
|
50 | |||
52 | # Mercurial 4.2 moved tag from localrepo to the tags module |
|
51 | # Mercurial 4.2 moved tag from localrepo to the tags module | |
53 | def tag(repo, *args): |
|
52 | def tag(repo, *args): |
General Comments 0
You need to be logged in to leave comments.
Login now