TODO NOW:
+- Add support for mypristine workflow
+- Make a nicer backtrace if not in a Git working copy directory
+- Fix chdir to old directory errors
- Symlinked rerere to get awesomeness. Consider permissions
- Wordpress needs to get rid of the siteurl hack, so that it actually
has a fully-qualified URL http://foo.scripts.mit.edu/blah. This will
scripts and start executing there?
- Write the code to make Wordpress figure out its URL from the database
+- Plugin architecture
+ http://peak.telecommunity.com/DevCenter/setuptools#dynamic-discovery-of-services-and-plugins
+ http://peak.telecommunity.com/DevCenter/PkgResources#entry-points
+ https://xvm.mit.edu:1111/trunk/packages/invirt-base/python/invirt/authz.py
+ https://xvm.mit.edu:1111/trunk/packages/xvm-authz-locker/setup.py
+
- Remerges aren't reflected in the parent files, so `git diff` output is
spurious. Not sure how to fix this w/o tree hackery.
- Sometimes users remove files. Well, if those files change, they automatically
folder we store this information in: :file:`/mit/scripts/sec-tools/store/versions`.
For the purposes of demonstration, we'll use Wordpress 2.0.2; in reality you
-should use the latest version. Try running the following command in
-:file:`$WIZARD/srv/wordpress`::
+should use the latest version. Try running the following commands::
+ cd "$WIZARD/srv/wordpress"
wizard prepare-pristine wordpress-2.0.2
You should get an error complaining about :meth:`wizard.app.Application.download`
if not options.force:
if ref != "refs/heads/pristine" and os.path.exists(os.path.join(".git", ref)):
raise Exception("Not on pristine branch (override with --force)")
- try:
- shell.call("git", "status")
+ if shell.eval("git", "ls-files", "-m").strip() != "":
raise Exception("Working copy is dirty (override with --force)")
- except shell.CallError:
- pass
for f in os.listdir(os.getcwd()):
if f == ".git": continue
try: