Skip to content

work out correct DSID ranges when committing for multiple blocks

Christian Gutschow requested to merge myBranch into master

Description of bug

Commit script used to print:

The following DSIDs have been assigned:
	100xxx/100000 -> 950xxx/950098
	100xxx/100001 -> 500xxx/500332
Run: ./scripts/commit_new_dsid.sh -d=950098-500332 -m="multi-block DSID test" to push them to git

Changes introduced

Use Python to work out ranges of consecutive DSIDs

Tests

Now prints:

The following DSIDs have been assigned:
	100xxx/100000 -> 950xxx/950098
	100xxx/100001 -> 500xxx/500332
Run: ./scripts/commit_new_dsid.sh -d=950098,500332 -m="multi-block DSID test" to push them to git

Slightly more complicated case:

The following DSIDs have been assigned:
	100xxx/100000 -> 950xxx/950161
	100xxx/100001 -> 600xxx/600624
	100xxx/100002 -> 600xxx/600625
	100xxx/100003 -> 600xxx/600626
	100xxx/100004 -> 700xxx/700172
Run: ./scripts/commit_new_dsid.sh -d=950161,600624-600626,700172 -m="ID range test" to push them to git

Issues resolved

Closes #126 (closed)

Edited by Christian Gutschow

Merge request reports