]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commitdiff
- changelog
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 26 Nov 2013 18:53:44 +0000 (13:53 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 26 Nov 2013 18:53:44 +0000 (13:53 -0500)
- use newer changelog pullreq format

alembic/script.py
docs/build/changelog.rst
docs/build/conf.py

index f8ef9603b0608d472d1b4c81a265d8152a95b306..731d688e0705fcf12b9074c31fcfe3b2452087fb 100644 (file)
@@ -222,7 +222,7 @@ class ScriptDirectory(object):
     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,
index a9ef46a3bb870b6dd1739e425eb40327285b7a00..5c4584c6080be0afe0cbfabeb5c0f8b0868e3d39 100644 (file)
@@ -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
@@ -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.
index 0bff22a610d3a8c70e5ab1f273681a60bc1a22b0..fa5f56957d54175162ecef70dc00c1cc91a97755 100644 (file)
@@ -39,6 +39,13 @@ changelog_sections = ["feature", "bug", "moved", "changed", "removed"]
 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']