switched def sync back, now it syncs from source branch to the current branch

modified:   modules/database.py
This commit is contained in:
Ronny Abraham 2016-11-08 19:42:47 +02:00
parent 28cc86f227
commit 13fd4c962c

View file

@ -376,17 +376,17 @@ def restore(dbuser='default', backup_file=None, reinitialize=True):
@task
def sync(dst):
def sync(src):
"""
sync from current branch database to destination branch
dst - the destination database
sync database from source branch to current branch
src - the database source branch
"""
configuration = env.config
import initialize
branch_dst = dst
configuration_src = configuration
configuration_dst = initialize.environment(branch_dst)
branch_src = src
configuration_src = initialize.environment(branch_src)
configuration_dst = configuration
print "branch_src: %s" % configuration_src.project.branch
print "branch_dst: %s" % configuration_dst.project.branch