| Index: sitescripts/extensions/bin/createNightlies.py |
| =================================================================== |
| --- a/sitescripts/extensions/bin/createNightlies.py |
| +++ b/sitescripts/extensions/bin/createNightlies.py |
| @@ -59,27 +59,29 @@ class NightlyBuild(object): |
| def hasChanges(self): |
| return self.revision != self.previousRevision |
| def getCurrentRevision(self): |
| """ |
| retrieves the current revision number from the repository |
| """ |
| - command = ['hg', 'log', '-R', self.config.repository, '-r', 'default', '--template', '{rev}'] |
| + command = ['hg', 'log', '-R', self.config.repository, '-r', 'default', |
| + '--template', '{rev}', '--config', 'defaults.log='] |
| return subprocess.check_output(command) |
| def getChanges(self): |
| """ |
| retrieve changes between the current and previous ("first") revision |
| """ |
| command = ['hg', 'log', '-R', self.config.repository, '-r', 'tip:0', |
| '-b', 'default', '-l', '50', '--encoding', 'utf-8', |
| - '--template', '{date|isodate}\\0{author|person}\\0{rev}\\0{desc}\\0\\0'] |
| + '--template', '{date|isodate}\\0{author|person}\\0{rev}\\0{desc}\\0\\0', |
| + '--config', 'defaults.log='] |
| result = subprocess.check_output(command).decode('utf-8') |
| for change in result.split('\0\0'): |
| if change: |
| date, author, revision, description = change.split('\0') |
| yield {'date': date, 'author': author, 'revision': revision, 'description': description} |
| def copyRepository(self): |