Add raw copy merge function.
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 31 Aug 2009 10:30:13 +0000 (10:30 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 31 Aug 2009 10:30:13 +0000 (10:30 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2824 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/bertos_utils.py

index 463051e6165f4d560d36c94b45e4c044f7867684..401713f61a4f010a21a68440357b7f2fd13f7f7f 100644 (file)
@@ -89,8 +89,13 @@ def loadBertosProject(project_file):
     return project_info
 
 def mergeSources(srcdir, new_sources, old_sources):
+    # The current mergeSources function provide only a raw copy of the sources in the
+    # created project.
+    #
     # TODO: implement the three way merge algorithm
-    pass
+    #
+    shutil.rmtree(srcdir, True)
+    copytree.copytree(sources_dir + "/bertos", srcdir, ignore_list=const.IGNORE_LIST)
 
 def projectFileGenerator(project_info):
     directory = project_info.info("PROJECT_PATH")