summaryrefslogtreecommitdiff
path: root/alembic/command.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2016-07-11 15:27:45 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2016-07-12 10:08:28 -0400
commit6d69285f3833b1bdb1d0005756ffcdcad97502f1 (patch)
tree3860ba45e47d02db79a583db1800fec58482af6e /alembic/command.py
parentccf3ca5fdfbb02938b4970a232a5401b310caf8d (diff)
downloadalembic-6d69285f3833b1bdb1d0005756ffcdcad97502f1.tar.gz
Report on other branch dependencies in "current"
Fixed bug where the "alembic current" command wouldn't show a revision as a current head if it were also a dependency of a version in a different branch that's also applied. Extra logic is added to extract "implied" versions on different branches from the top-level versions listed in the alembic_version table. Change-Id: I9f485fbc67555d13f737ecffdd25e4c0d8e33f1c Fixes: #378
Diffstat (limited to 'alembic/command.py')
-rw-r--r--alembic/command.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/alembic/command.py b/alembic/command.py
index 6b2bc33..0034c18 100644
--- a/alembic/command.py
+++ b/alembic/command.py
@@ -316,8 +316,9 @@ def current(config, verbose=False, head_only=False):
"Current revision(s) for %s:",
util.obfuscate_url_pw(context.connection.engine.url)
)
- for rev in script.get_revisions(rev):
+ for rev in script.get_all_current(rev):
config.print_stdout(rev.cmd_format(verbose))
+
return []
with EnvironmentContext(