From 13fd4c962cf5c2d092e344279b0120003136f098 Mon Sep 17 00:00:00 2001 From: Ronny Abraham Date: Tue, 8 Nov 2016 19:42:47 +0200 Subject: [PATCH] switched def sync back, now it syncs from source branch to the current branch modified: modules/database.py --- modules/database.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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