diff --git a/modules/database.py b/modules/database.py index fd601ea..d4bde25 100644 --- a/modules/database.py +++ b/modules/database.py @@ -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