def _rev_path(self, rev_id, message, create_date):
slug = "_".join(_slug_re.findall(message or "")).lower()
if len(slug) > 60:
- slug = slug[:60].rsplit('_', 1)[0]+'_'
+ slug = slug[:60].rsplit('_', 1)[0] + '_'
filename = "%s.py" % (
self.file_template % {
'rev': rev_id,
:version: 0.6.1
:released: no release date
+ .. change::
+ :tags: feature
+ :pullreq: bitbucket:12
+
+ Expanded the size of the filenames generated by "revision" to 60 characters,
+ and also split on the word rather than the character; courtesy
+ Frozenball.
+
.. change::
:tags: bug
:tickets: 135
.. change::
:tags: bug
- :pullreq: 9
+ :pullreq: bitbucket:9
Fixes to Py3k in-place compatibity regarding output encoding and related;
the use of the new io.* package introduced some incompatibilities on Py2k.
changelog_render_ticket = "https://bitbucket.org/zzzeek/alembic/issue/%s/"
changelog_render_pullreq = "https://bitbucket.org/zzzeek/alembic/pull-request/%s"
+changelog_render_pullreq = {
+ "bitbucket": "https://bitbucket.org/zzzeek/alembic/pull-request/%s",
+ "default": "https://bitbucket.org/zzzeek/alembic/pull-request/%s",
+ "github": "https://github.com/zzzeek/alembic/pull/%s",
+}
+
+
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']