Mercurial > hg
comparison hgext/largefiles/reposetup.py @ 29314:bde283a1ad1a
py3: make largefiles/reposetup.py use absolute_import
author | liscju <piotr.listkiewicz@gmail.com> |
---|---|
date | Tue, 10 May 2016 15:04:22 +0200 |
parents | a75c9665ef06 |
children | cc497d2830b0 |
comparison
equal
deleted
inserted
replaced
29313:0ccab84f9630 | 29314:bde283a1ad1a |
---|---|
5 # | 5 # |
6 # This software may be used and distributed according to the terms of the | 6 # This software may be used and distributed according to the terms of the |
7 # GNU General Public License version 2 or any later version. | 7 # GNU General Public License version 2 or any later version. |
8 | 8 |
9 '''setup for largefiles repositories: reposetup''' | 9 '''setup for largefiles repositories: reposetup''' |
10 from __future__ import absolute_import | |
11 | |
10 import copy | 12 import copy |
11 | 13 |
12 from mercurial import error, match as match_, error | |
13 from mercurial.i18n import _ | 14 from mercurial.i18n import _ |
14 from mercurial import scmutil, localrepo | 15 |
15 | 16 from mercurial import ( |
16 import lfcommands | 17 error, |
17 import lfutil | 18 localrepo, |
19 match as match_, | |
20 scmutil, | |
21 ) | |
22 | |
23 from . import ( | |
24 lfcommands, | |
25 lfutil, | |
26 ) | |
18 | 27 |
19 def reposetup(ui, repo): | 28 def reposetup(ui, repo): |
20 # wire repositories should be given new wireproto functions | 29 # wire repositories should be given new wireproto functions |
21 # by "proto.wirereposetup()" via "hg.wirepeersetupfuncs" | 30 # by "proto.wirereposetup()" via "hg.wirepeersetupfuncs" |
22 if not repo.local(): | 31 if not repo.local(): |