Ticket #4900: resync_fix-r5961.diff
| File resync_fix-r5961.diff, 1.8 KB (added by cboos, 4 years ago) |
|---|
-
trac/versioncontrol/svn_fs.py
863 863 if not (_is_path_within_scope(self.scope, path) and \ 864 864 self.authz.has_permission(path)): 865 865 continue 866 867 path = change.path 866 new_path = change.path 868 867 base_path = change.base_path 869 868 base_rev = change.base_rev 870 869 … … 874 873 base_path, base_rev = None, -1 875 874 876 875 # Determine the action 877 if not path:# deletion876 if not new_path: # deletion 878 877 if base_path: 879 if base_path in deletions:880 continue # duplicates on base_path are possible (#3778)878 #if base_path in deletions: 879 # continue # duplicates on base_path are possible (#3778) 881 880 action = Changeset.DELETE 882 deletions[ base_path] = idx881 deletions[path] = idx # ''not'' base_path (see #4900) 883 882 elif self.scope == '/': # root property change 884 883 action = Changeset.EDIT 885 884 else: # deletion outside of scope, ignore … … 906 905 base_path, base_rev = cbase_path, cbase_rev 907 906 908 907 kind = _kindmap[change.item_kind] 909 path = _path_within_scope(self.scope, _from_svn(path or base_path))908 path = _path_within_scope(self.scope, _from_svn(path)) 910 909 base_path = _path_within_scope(self.scope, _from_svn(base_path)) 911 910 changes.append([path, kind, action, base_path, base_rev]) 912 911 idx += 1
