mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
absorb: move to a package
Summary: The ideal interactive mode couldn't be implemented trivially. Move `absorb` to a directory so we can add related, but decoupled components as separate files. Test Plan: `make local` Reviewers: #mercurial, rmcelroy Reviewed By: rmcelroy Subscribers: rmcelroy, mjpieters Differential Revision: https://phabricator.intern.facebook.com/D4813909 Signature: t1:4813909:1491211561:e9c40b1242c9b74230c0b8937723a2d4548e22c3
This commit is contained in:
parent
9b44edde6f
commit
08d017f89e
7
setup.py
7
setup.py
@ -135,12 +135,19 @@ else:
|
||||
}),
|
||||
]
|
||||
|
||||
# modules that are single files in hgext3rd
|
||||
hgext3rd = [
|
||||
p[:-3].replace('/', '.')
|
||||
for p in glob('hgext3rd/*.py')
|
||||
if p != 'hgext3rd/__init__.py'
|
||||
]
|
||||
|
||||
# modules that are directories in hgext3rd
|
||||
hgext3rd.extend(
|
||||
p[:-12].replace('/', '.')
|
||||
for p in glob('hgext3rd/*/__init__.py')
|
||||
)
|
||||
|
||||
availablepymodules = dict([(x[9:], x) for x in hgext3rd])
|
||||
availablepymodules['statprof'] = 'statprof'
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
$ extpath=`dirname $TESTDIR`
|
||||
$ cat >> $HGRCPATH << EOF
|
||||
> [extensions]
|
||||
> absorb=$extpath/hgext3rd/absorb.py
|
||||
> absorb=$extpath/hgext3rd/absorb
|
||||
> EOF
|
||||
|
||||
$ hg init repo1
|
||||
|
@ -6,7 +6,7 @@
|
||||
> [diff]
|
||||
> git=1
|
||||
> [extensions]
|
||||
> absorb=$extpath/hgext3rd/absorb.py
|
||||
> absorb=$extpath/hgext3rd/absorb
|
||||
> EOF
|
||||
|
||||
$ sedi() { # workaround check-code
|
||||
|
@ -4,7 +4,7 @@
|
||||
$ extpath=`dirname $TESTDIR`
|
||||
$ cat >> $HGRCPATH << EOF
|
||||
> [extensions]
|
||||
> absorb=$extpath/hgext3rd/absorb.py
|
||||
> absorb=$extpath/hgext3rd/absorb
|
||||
> EOF
|
||||
|
||||
$ sedi() { # workaround check-code
|
||||
|
Loading…
Reference in New Issue
Block a user