switched def sync back, now it syncs from source branch to the current branch
modified: modules/database.py
This commit is contained in:
parent
28cc86f227
commit
13fd4c962c
1 changed files with 6 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue