Skip to content

Commit

Permalink
- changelog
Browse files Browse the repository at this point in the history
- use newer changelog pullreq format
  • Loading branch information
zzzeek committed Nov 26, 2013
1 parent 8dc63a0 commit 39e4b4a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion alembic/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def _revision_map(self):
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,
Expand Down
10 changes: 9 additions & 1 deletion docs/build/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ Changelog
: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
Expand All @@ -18,7 +26,7 @@ Changelog

.. 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.
Expand Down
7 changes: 7 additions & 0 deletions docs/build/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@
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']

Expand Down

0 comments on commit 39e4b4a

Please sign in to comment.