Skip to content

Commit

Permalink
Merge pull request #15 from hurrycane/master
Browse files Browse the repository at this point in the history
Added the branches command
  • Loading branch information
miguelgrinberg committed Jan 19, 2014
2 parents 9896e37 + b9913c6 commit a729a8c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions flask_migrate/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,9 @@ def downgrade(directory = None, revision = '-1', sql = False, tag = None):
"Revert to a previous version"
config = _get_config(directory)
command.downgrade(config, revision, sql = sql, tag = tag)

@MigrateCommand.option('-d', '--directory', dest = 'directory', default = None, help = "Migration script directory (default is 'migrations')")
def branches(directory = None):
"Lists revisions that have broken the source tree into two versions representing two independent sets of changes"
config = _get_config(directory)
command.branches(config)

0 comments on commit a729a8c

Please sign in to comment.