mirror of
https://github.com/moparisthebest/xeps
synced 2024-12-22 07:38:52 -05:00
Merge pull request #14 from linuxwolf/tooling-fix
temporary fix to realize the repo root is now the current directory
This commit is contained in:
commit
39e8858273
2
gen.py
2
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
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user