Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Moving imports to make pip installing easier

  • Loading branch information...
commit 561ad74bf69be98e88aca997f76501e32a9284fa 1 parent 9449002
codekoala authored
Showing with 43 additions and 4 deletions.
  1. +42 −3 hooks.patch
  2. +1 −1  rename_files.patch
View
45 hooks.patch
@@ -1,9 +1,9 @@
# HG changeset patch
-# Parent 694bd2b3a75093e4cf4c60876cf8804d2243edcc
+# Parent 8a2adc556d541e0a6ebe18883e755b987bb432d2
-diff -r 694bd2b3a750 hgblog/generate_html.py
+diff -r 8a2adc556d54 hgblog/generate_html.py
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
-+++ b/hgblog/generate_html.py Sat Apr 24 21:31:50 2010 -0400
++++ b/hgblog/generate_html.py Mon Apr 26 13:02:28 2010 -0400
@@ -0,0 +1,7 @@
+from hgblog.refresh import refresh
+
@@ -12,3 +12,42 @@ diff -r 694bd2b3a750 hgblog/generate_html.py
+
+ refresh(repo)
+
+diff -r 8a2adc556d54 hgblog/refresh.py
+--- a/hgblog/refresh.py Mon Apr 26 13:01:22 2010 -0400
++++ b/hgblog/refresh.py Mon Apr 26 13:02:28 2010 -0400
+@@ -1,13 +1,13 @@
+-from mercurial.match import match
+-from mercurial.ui import ui
+-from sphinx.cmdline import main as sphinxify
+ import os
+
+-from hgblog.utils import get_repo
+-
+ def refresh(repo=None):
+ """Calls on Sphinx to turn our .rst files into pretty HTML"""
+
++ from mercurial.match import match
++ from mercurial.ui import ui
++ from sphinx.cmdline import main as sphinxify
++ from hgblog.utils import get_repo
++
+ if repo is None:
+ repo = get_repo()
+
+diff -r 8a2adc556d54 hgblog/utils.py
+--- a/hgblog/utils.py Mon Apr 26 13:01:22 2010 -0400
++++ b/hgblog/utils.py Mon Apr 26 13:02:28 2010 -0400
+@@ -1,9 +1,10 @@
+-from mercurial.cmdutil import findrepo
+-from mercurial import hg
+-from mercurial.ui import ui
+ import os
+
+ def get_repo(path=None):
++ from mercurial.cmdutil import findrepo
++ from mercurial import hg
++ from mercurial.ui import ui
++
+ if path is None:
+ path = os.getcwd()
+
View
2  rename_files.patch
@@ -57,7 +57,7 @@ new file mode 100644
@@ -0,0 +1,4 @@
+from server import serve
+
-+__version__ = '0.2'
++__version__ = '0.3'
+
diff --git a/hgblog/refresh.py b/hgblog/refresh.py
new file mode 100644
Please sign in to comment.
Something went wrong with that request. Please try again.