Skip to content
This repository has been archived by the owner on Jun 6, 2018. It is now read-only.

Commit

Permalink
Show how many changes & pages found.
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxu committed Dec 28, 2011
1 parent 89d6273 commit 991d180
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dokuwiki2git
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,15 @@ class Converter:

def read_meta(self):
log.info('Reading meta')
pages = 0
for path, dirs, files in os.walk(self.metadir):
for f in files:
if fnmatch.fnmatch(f, '*.changes'):
relpath = os.path.relpath(os.path.join(path, f), self.metadir)
pagepath = relpath.rsplit('.', 1)[0]
self.read_meta_page(pagepath, os.path.join(path, f))
pages += 1
log.info('%d changelog entries for %d pages found' % (len(self.changelog), pages))

def read_meta_page(self, pagepath, fullpath):
if pagepath in ('_dokuwiki', '_comments'):
Expand Down

0 comments on commit 991d180

Please sign in to comment.