Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

File rename can break project file #418

@galich

Description

@galich

For projects under SVN try to rename file to the name that already exists. An exception happens:

Error
---------------------------
File renamed exception: ICSharpCode.Svn.SvnClientException: Path '...\ErrorCodes.cs' already exists ---> SharpSvn.SvnEntryException: Path '...\ErrorCodes.cs' already exists

   at SharpSvn.SvnClientArgs.HandleResult(SvnClientContext client, SvnException error, Object targets)

   at SharpSvn.SvnClientArgs.HandleResult(SvnClientContext client, svn_error_t* error, Object targets)

   at SharpSvn.SvnClient.Move(ICollection`1 sourcePaths, String toPath, SvnMoveArgs args)

   at SharpSvn.SvnClient.Move(String sourcePath, String toPath, SvnMoveArgs args)

   at ICSharpCode.Svn.SvnClientWrapper.Move(String from, String to, Boolean force)

   --- End of inner exception stack trace ---

   at ICSharpCode.Svn.SvnClientWrapper.Move(String from, String to, Boolean force)

   at ICSharpCode.Svn.Commands.RegisterEventsCommand.FileRenaming(Object sender, FileRenamingEventArgs e)

After clicking OK/Continue you will get broken project file with multiple entries of the same name.

image

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions