mirror of
https://github.com/facebook/sapling.git
synced 2025-01-07 14:10:42 +03:00
742cd624f7
Summary: Move hgsql into the hgext directory, and the tests to tests/test-hgsql-*. Update the tests to refer to the new places for things. Test Plan: Run the hgsql tests and make sure they pass. Reviewers: #sourcecontrol Differential Revision: https://phabricator.intern.facebook.com/D6660499 Tasks: T24908724
16 lines
293 B
Bash
Executable File
16 lines
293 B
Bash
Executable File
#!/bin/bash
|
|
|
|
hasext() {
|
|
for modname in "$1" "hgext.$1" "hgext3rd.$1"; do
|
|
${PYTHON:-python} -c "import $1" 2> /dev/null && return 0
|
|
done
|
|
false
|
|
}
|
|
|
|
for extname in "$@"; do
|
|
hasext $extname || {
|
|
echo 'skipped: missing feature: '"$extname"
|
|
exit 80
|
|
}
|
|
done
|