From 2e39eb3984bb6d04981818a8eea62488ef7d5061 Mon Sep 17 00:00:00 2001 From: "Matthew A. Miller" Date: Wed, 8 Jul 2015 20:32:48 -0600 Subject: [PATCH] temporary fix to realize the repo root is now the current directory --- gen.py | 2 +- xeputil.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gen.py b/gen.py index 80147916..7c5b29d7 100755 --- a/gen.py +++ b/gen.py @@ -325,7 +325,7 @@ def buildPDF( file, nr ): def buildXEP( filename ): nr = re.match("xep-(\d\d\d\d).xml", filename).group(1) - xepfilepath = getLatestXEPFilename("../", nr); + xepfilepath = getLatestXEPFilename("./", nr); if not xepfilepath: print "getLatestXEPContent (ERROR)" return diff --git a/xeputil.py b/xeputil.py index b2a8f718..85e70174 100644 --- a/xeputil.py +++ b/xeputil.py @@ -50,7 +50,7 @@ class XEP: def revisions(self): repo = hg.repository(ui.ui(), self.BASEDIR) - fctx = repo.filectx('extensions/' + "xep-" + self.nr + ".xml", 'tip') + fctx = repo.filectx("xep-" + self.nr + ".xml", 'tip') revs = [] for rev in fctx.filelog(): revs.append(fctx.filectx(rev).rev()) @@ -59,7 +59,7 @@ class XEP: def contentOfRevision(self, revision): repo = hg.repository(ui.ui(), self.BASEDIR) - fctx = repo.filectx('extensions/' + "xep-" + self.nr + ".xml", revision) + fctx = repo.filectx("xep-" + self.nr + ".xml", revision) # load content for that revision file_text = fctx.data()