mergin/merginproject.py
def create_conflicted_copy(self, file, user_name):
        """
        Create conflicted copy file next to its origin.

        :param file: path of file in project
        :type file: str
        :returns: path to conflicted copy
        :rtype: str
        """
        src = self.fpath(file)
        if not os.path.exists(src):
            return

        backup_path = unique_path_name(conflicted_copy_file_name(self.fpath(file), user_name, int_version(self.metadata['version'])))

        if self.is_versioned_file(file):
            self.geodiff.make_copy_sqlite(src, backup_path)
        else:
            shutil.copy(src, backup_path)
        return backup_path

        Create conflicted copy file next to its origin.

        :param file: path of file in project
        :type file: str
        :returns: path to conflicted copy
        :rtype: str
        
Create conflicted copy file next to its origin.
Create conflicted copy file next to its origin .
def create_conflicted_copy(self, file, user_name):
        src = self.fpath(file)
        if not os.path.exists(src):
            return
        backup_path = unique_path_name(conflicted_copy_file_name(self.fpath(file), user_name, int_version(self.metadata['version'])))
        if self.is_versioned_file(file):
            self.geodiff.make_copy_sqlite(src, backup_path)
        else:
            shutil.copy(src, backup_path)
        return backup_path
def create_conflicted_copy ( self , file , user_name ) : src = self . fpath ( file ) if not os . path . exists ( src ) : return backup_path = unique_path_name ( conflicted_copy_file_name ( self . fpath ( file ) , user_name , int_version ( self . metadata [ 'version' ] ) ) ) if self . is_versioned_file ( file ) : self . geodiff . make_copy_sqlite ( src , backup_path ) else : shutil . copy ( src , backup_path ) return backup_path
Create conflicted copy file next to its origin.
Create conflicted copy file next to its origin .
"""
        Create conflicted copy file next to its origin.

        :param file: path of file in project
        :type file: str
        :returns: path to conflicted copy
        :rtype: str
        """
path to conflicted copy
path to conflicted copy
str
self
file
path of file in project
path of file in project
user_name