Skip to content

v0.4.0

Compare
Choose a tag to compare
@github-actions github-actions released this 23 Jun 03:29
· 2475 commits to master since this release

Overview

0.4.0 adds basic support for resolving merge conflicts, imports from postgres databases, and a variety of other minor features

Major changes in this release

  • Basic conflict resolution:
    • sno merge now puts the repo in a merging state when there are conflicts (#80)
    • Added sno conflicts to list conflicts (#84)
    • Added sno resolve (#101)
    • Added sno merge --continue (#94)
  • Major improvements to sno import and sno init --import:
    • Can now import from postgres databases (#90)
    • Multiple tables can be imported at once (#118)
  • Added sno show: shows a commit. With -o json generates a patch (#48)
  • Added sno apply to apply the patches generated by sno show -o json (#61)

Minor features / fixes:

  • add a changelog (here!)
  • sno import enhancements (in addition to major changes above):
    • GPKG database paths no longer need GPKG: prefix
    • now takes table names as separate arguments
    • Added --primary-key=FIELD to override primary key field name
    • Added --message to customize the commit message
    • --list no longer requires a repository
  • sno init --import enhancements:
    • imports are much faster (#55)
    • now imports all tables from database, doesn't allow table to be specified
  • Many JSON output improvements:
    • JSON output is specified with -o json instead of --json (#98)
    • Added syntax highlighting to JSON output when viewed in a terminal (#54)
    • sno diff JSON output layout has changed - features are now flat objects instead of GeoJSON objects. This is much more compact (#71)
    • Added JSON output option for most commands
    • Added --json-style option to several commands to control JSON formatting (#70)
  • sno diff:
    • a..b now refers to the same changes as sno log a..b (#116)
    • can now diff against tree objects, particularly the empty tree (#53)
    • can now view some subset of the changes by supplying filter args, ie [dataset[:pk]]
  • sno commit:
    • can now commit some subset of the changes by supplying filter args, ie [dataset[:pk]] (#69)
  • removed import-gpkg command; use import instead (#85)
  • Error messages now go to stderr instead of stdout (#57)
  • Error conditions now use exit codes to indicate different types of errors (#46)

Compatibility

Repositories created with Sno v0.2 onwards are compatible with v0.4. For assistance upgrading any v0.1 repositories, please read our upgrade guide.