Skip to content

Commit

Permalink
Added the branches command
Browse files Browse the repository at this point in the history
  • Loading branch information
hurrycane committed Jan 18, 2014
1 parent 9896e37 commit b9913c6
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 b9913c6

Please sign in to comment.