3 on commit to submodule:
7 superrepo heads are dev, prod, and dev-incoming, prod-incoming
8 on commit to superrepo:
9 reject commits to dev, prod
14 in build process for foo-incoming:
15 for each changed submodule revision:
16 (as optimization: if same commit already in dev, just reprepro move)
17 try to build submodule
20 clean up any previous packages' built files, maybe keep this one's around
21 remember package and version
22 for each changed submodule revision: (if we're still going)
23 tag submodule with version
24 upload to dev/prod respectively
30 reset foo-incoming to old revision
35 Maybe there could be something sane without the lock? It'd require