Mercurial > hg
comparison tests/pullext.py @ 42813:268662aac075
interfaces: create a new folder for interfaces and move repository.py in it
I was trying to understand current interfaces and write new ones and I realized
we need to improve how current interfaces are organised. This creates a
dedicated folder for defining interfaces and move `repository.py` which defines
all the current interfaces inside it.
Differential Revision: https://phab.mercurial-scm.org/D6741
author | Pulkit Goyal <pulkit@yandex-team.ru> |
---|---|
date | Sun, 18 Aug 2019 00:45:33 +0300 |
parents | 70a00a8cd66e |
children | 2372284d9457 |
comparison
equal
deleted
inserted
replaced
42807:383fdfa6bba9 | 42813:268662aac075 |
---|---|
11 from mercurial import ( | 11 from mercurial import ( |
12 commands, | 12 commands, |
13 error, | 13 error, |
14 extensions, | 14 extensions, |
15 localrepo, | 15 localrepo, |
16 ) | |
17 from mercurial.interfaces import ( | |
16 repository, | 18 repository, |
17 ) | 19 ) |
18 | 20 |
19 def clonecommand(orig, ui, repo, *args, **kwargs): | 21 def clonecommand(orig, ui, repo, *args, **kwargs): |
20 if kwargs.get(r'include') or kwargs.get(r'exclude'): | 22 if kwargs.get(r'include') or kwargs.get(r'exclude'): |