1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-11-21 08:45:04 -05:00

temporary fix to realize the repo root is now the current directory

This commit is contained in:
Matthew A. Miller 2015-07-08 20:32:48 -06:00
parent 9886804311
commit 2e39eb3984
2 changed files with 3 additions and 3 deletions

2
gen.py
View File

@ -325,7 +325,7 @@ def buildPDF( file, nr ):
def buildXEP( filename ): def buildXEP( filename ):
nr = re.match("xep-(\d\d\d\d).xml", filename).group(1) nr = re.match("xep-(\d\d\d\d).xml", filename).group(1)
xepfilepath = getLatestXEPFilename("../", nr); xepfilepath = getLatestXEPFilename("./", nr);
if not xepfilepath: if not xepfilepath:
print "getLatestXEPContent (ERROR)" print "getLatestXEPContent (ERROR)"
return return

View File

@ -50,7 +50,7 @@ class XEP:
def revisions(self): def revisions(self):
repo = hg.repository(ui.ui(), self.BASEDIR) 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 = [] revs = []
for rev in fctx.filelog(): for rev in fctx.filelog():
revs.append(fctx.filectx(rev).rev()) revs.append(fctx.filectx(rev).rev())
@ -59,7 +59,7 @@ class XEP:
def contentOfRevision(self, revision): def contentOfRevision(self, revision):
repo = hg.repository(ui.ui(), self.BASEDIR) 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 # load content for that revision
file_text = fctx.data() file_text = fctx.data()