]> git.gag.com Git - hw/altusmetrum/commit
Make tab and csv part import 'the same'.
authorKeith Packard <keithp@keithp.com>
Sun, 22 Jun 2025 21:37:30 +0000 (14:37 -0700)
committerKeith Packard <keithp@keithp.com>
Sun, 22 Jun 2025 21:42:09 +0000 (14:42 -0700)
commit3f5d8d33b1cb2c31afb42489d5a1c239fdcf7536
treeb031c5b923ded6af4f52db7fb1d547be0f719804
parentca0572edb79122047bcdc581e5aaf259809c63b7
Make tab and csv part import 'the same'.

.tab files have one line per refdes, .csv files have one line per component.
When importing a .tab file, merge matching components by sorting-in
another refdes. When importing a .csv file, sort the refdes
numerically.

When dumping a .tab file, iterate over the refdes and emit duplicate lines.

Signed-off-by: Keith Packard <keithp@keithp.com>
bin/parts.py