Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: sitescripts/extensions/bin/createNightlies.py

Issue 4910232006295552: Issue 1365 - Development build creation fails if custom hg log parameters are configured (Closed)
Patch Set: Created Sept. 11, 2014, 7:15 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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):
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld