]> scripts.mit.edu Git - wizard.git/commitdiff
Rename .scripts-version (deprecated) and add utility rollback script.
authorEdward Z. Yang <ezyang@mit.edu>
Thu, 2 Jul 2009 03:12:59 +0000 (23:12 -0400)
committerEdward Z. Yang <ezyang@mit.edu>
Thu, 2 Jul 2009 03:13:45 +0000 (23:13 -0400)
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
TODO
bin/revert-migration [new file with mode: 0755]
wizard/command/migrate.py

diff --git a/TODO b/TODO
index 0133650f5eba50406c37642a870848cd718cd61d..53fa9a517a31d0dcf7dfd19c2847553802e62948 100644 (file)
--- a/TODO
+++ b/TODO
@@ -2,8 +2,6 @@ The Git Autoinstaller
 
 TODO NOW:
 
-- Migration script needs to delete .scripts-version/move
-  it somwhere else, since it's deprecated
 - Migration script needs to make an empty commit with the
   user's changes that says "Initial migration", and then
   has wizard info
@@ -28,6 +26,9 @@ TODO NOW:
 - Need an upgrade script OR
 - Need survey script
 
+- Summary script should be more machine friendly, and should not
+  output summary charts when I increase specificity
+
 COMMIT MESSAGE FIELDS:
 
 Installed-by: username@hostname     # person who ran autoinstaller
diff --git a/bin/revert-migration b/bin/revert-migration
new file mode 100755 (executable)
index 0000000..01711a3
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/sh -e
+cd $1
+mv .scripts/old-version .scripts-version
+rm -Rf .scripts
+rm -Rf .git
index 3ecb1112e169e9d5075dc24ff9838d01194e238b..363158693e3c3c85f940deeef794d1478927ea17 100644 (file)
@@ -26,6 +26,8 @@ def main(argv, global_options):
     check_if_tag_exists(sh, repo, tag)
     make_repository(sh, options, repo, tag)
 
+    os.rename(".scripts-version", ".scripts/old-version") # archive
+
 def parse_args(argv):
     usage = """usage: %prog migrate [ARGS] DIR