guts: adjust paths and imports
author |
Steve Losh <steve@stevelosh.com> |
date |
Tue, 15 Jun 2010 20:50:22 -0400 |
parents |
34df61cd0a47
|
children |
5f877e7ce4d7
|
branches/tags |
(none) |
files |
contrib/deploy/wsgi.py review/cli.py |
Changes
--- a/contrib/deploy/wsgi.py Tue Jun 15 20:40:50 2010 -0400
+++ b/contrib/deploy/wsgi.py Tue Jun 15 20:50:22 2010 -0400
@@ -2,9 +2,9 @@
# Edit as necessary.
# If hg-review is not on your webserver's PYTHONPATH, uncomment the lines
-# below and point it at the hg-review/review directory.
+# below and point it at the hg-review directory.
import sys
-sys.path.insert(0, "/path/to/hg-review/review")
+sys.path.insert(0, "/path/to/hg-review")
REPO = '/path/to/your/repo'
READ_ONLY = True
@@ -14,7 +14,7 @@
TITLE = 'Your Project'
from mercurial import hg, ui
-from web import app
+from review.web import app
_ui = ui.ui()
_ui.setconfig('ui', 'user', ANON_USER)
--- a/review/cli.py Tue Jun 15 20:40:50 2010 -0400
+++ b/review/cli.py Tue Jun 15 20:50:22 2010 -0400
@@ -7,9 +7,8 @@
import re
import api, helps, messages
-from mercurial import help, templatefilters, util
+from mercurial import extensions, help, templatefilters, util
from mercurial.node import short
-from mercurial import extensions
def _get_message(ui, rd, initial):