Skip to content

Add restore-state

Compare
Choose a tag to compare
@mathomp4 mathomp4 released this 18 Aug 15:33
· 360 commits to main since this release
b4561be

DOI

This release adds a mepo restore-state command

With this command, you should be able to restore a checkout to what the original state was. This was a request/idea inspired by @yvikhlya:

❯ mepo compare
Repo       | Original             | Current
---------- | -------------------- | -------
ESMA_env   | (t) v2.1.6 (DH)      | (b) feature/mathomp4/intel1912
ESMA_cmake | (t) v3.1.2 (DH)      | (t) v3.1.2 (DH)
ecbuild    | (t) geos/v1.0.5 (DH) | (t) geos/v1.0.5 (DH)

❯ mepo restore-state
Checking status...
Reverting ESMA_env to v2.1.6

❯ mepo compare
Repo       | Original             | Current
---------- | -------------------- | -------
ESMA_env   | (t) v2.1.6 (DH)      | (t) v2.1.6 (DH)
ESMA_cmake | (t) v3.1.2 (DH)      | (t) v3.1.2 (DH)
ecbuild    | (t) geos/v1.0.5 (DH) | (t) geos/v1.0.5 (DH)

Note: at present this will restore EVERYTHING to the previous state. Not a repo here or there.