TriBITS
TriBITS copied to clipboard
Change snapshot-dir.py to snapshot_dir.py and extend
This story is to address several issues with snapshot-dir.py:
- Change name from
snapshot-dir.pytosnapshot_dir.pyand make a stand-alone script: By only using underscores_and not dashes-in the name, this will allowsnapshot_dir.pyto be a python module (so we can do away withSnapshotDir.py) and then have just have the unit test modulesnaphshot_dir_UnitTests.py. This will allow people to copy out this one stand-alone script and use it as part of their workflow outside of TriBITS. - Extend
snapshot_dir.pyto snapshot from Hg and SVN repos into git: The only hard part here will be asserting the origin Hg or SVN repos are "clean" and to extract the version info from the Hg or SVN repos needed to build the git commit to provide perfect backtracing. This will allow this script to be used to integrate repos from Hg and SVN into git projects. This will be used, for example, to implement the syncing of MOOSE (SVN) and SCALE (Hg) into git copies for VERA. - Skip final commit if there are no changes to commit: This will allow this to be used in automated scripts and workflows without failing if there are no changes.
- Add
--excludearguments to allow additional directories to be excluded as well: This will be needed to implementsnapshot_tribits.py(see #26).