[GRASS-git] [OSGeo/grass] f0970e: grass.script: add create_mapset function (#7298)
Anna Petrasova
noreply at github.com
Wed Jul 15 06:55:44 PDT 2026
Branch: refs/heads/main
Home: https://github.com/OSGeo/grass
Commit: f0970ee81eb13fdfb9dee4ed0c5b37a7baa5cc7e
https://github.com/OSGeo/grass/commit/f0970ee81eb13fdfb9dee4ed0c5b37a7baa5cc7e
Author: Anna Petrasova <kratochanna at gmail.com>
Date: 2026-07-15 (Wed, 15 Jul 2026)
Changed paths:
M python/grass/app/cli.py
M python/grass/app/tests/grass_app_cli_test.py
M python/grass/script/__init__.py
M python/grass/script/core.py
A python/grass/script/tests/grass_script_create_mapset_test.py
Log Message:
-----------
grass.script: add create_mapset function (#7298)
Validates project exists and has PERMANENT mapset
Validates mapset name using legal_name()
Rejects creating PERMANENT
overwrite=True to replace existing mapset
initialize_db=True (default) runs db.connect -c via Tools API
env parameter for use with specific sessions, falls back to os.environ
Raises ScriptError with clear messages for all error cases
To unsubscribe from these emails, change your notification settings at https://github.com/OSGeo/grass/settings/notifications
More information about the grass-commit
mailing list