[Python-checkins] r88806 - tracker/instances/python-dev/extensions/create_patch.py
martin.v.loewis
python-checkins at python.org
Fri Mar 25 23:16:40 CET 2011
Author: martin.v.loewis
Date: Fri Mar 25 23:16:40 2011
New Revision: 88806
Log:
Drop more references to sourcebranch.
Modified:
tracker/instances/python-dev/extensions/create_patch.py
Modified: tracker/instances/python-dev/extensions/create_patch.py
==============================================================================
--- tracker/instances/python-dev/extensions/create_patch.py (original)
+++ tracker/instances/python-dev/extensions/create_patch.py Fri Mar 25 23:16:40 2011
@@ -4,7 +4,7 @@
class NotChanged(ValueError):
pass
-def download_patch(source, lastrev, sourcebranch, patchbranch):
+def download_patch(source, lastrev, patchbranch):
from mercurial import hg, ui, localrepo, commands, bundlerepo
UI = ui.ui()
bundle = tempfile.mktemp(dir="/var/tmp")
@@ -56,14 +56,11 @@
self.client.error_message.append('unknown hgrepo url')
return
lastrev = db.hgrepo.get(repo, 'lastrev')
- sourcebranch = db.hgrepo.get(repo, 'sourcebranch')
- if not sourcebranch:
- sourcebranch = 'default'
patchbranch = db.hgrepo.get(repo, 'patchbranch')
if not patchbranch:
patchbranch = 'default'
try:
- diff, head = download_patch(url, lastrev, sourcebranch, patchbranch)
+ diff, head = download_patch(url, lastrev, patchbranch)
except NotChanged:
self.client.error_message.append('%s.diff is already available' % lastrev)
return
More information about the Python-checkins
mailing list