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:
Jun Wu 2017-04-03 10:40:31 -07:00
parent 9b44edde6f
commit 08d017f89e
5 changed files with 10 additions and 3 deletions

View File

@ -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'

View File

@ -4,7 +4,7 @@
$ extpath=`dirname $TESTDIR`
$ cat >> $HGRCPATH << EOF
> [extensions]
> absorb=$extpath/hgext3rd/absorb.py
> absorb=$extpath/hgext3rd/absorb
> EOF
$ hg init repo1

View File

@ -6,7 +6,7 @@
> [diff]
> git=1
> [extensions]
> absorb=$extpath/hgext3rd/absorb.py
> absorb=$extpath/hgext3rd/absorb
> EOF
$ sedi() { # workaround check-code

View File

@ -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