English 中文(简体)
robocopy command
原标题:
  • 时间:2009-12-23 09:15:26
  •  标签:
  • svn
  • robocopy

Iam using robocopy s /MIR command to copy the source files from MKS sandbox to SVN working copy and then iam committing to svn repository.this process is needed becasue we are in the process of changing the source control tool from MKS to Subversion.

set mks_path=C:	est
robocopy "C:	est" "C:	estsvnSource" /MIR /XD "%MKS_PATH%in" "%MKS_PATH%obj" /XF "%MKS_PATH%project.pj" >>%log%

Now the issue is 1) i cant use robocopy mir command because robocopy /MIR commad erases files/folders in the destination directory that are no longer in the source directory. It deletes all the .svn directory from the SVN working copy, after wards, we cant execute any commands apart from svn checkout. 2) I need to filter few files and folders recursively in the MKS_path, i used /XF and /XD, but its filtering those files and folders from top level.

Please suggest me how can i copy the mks source code to SVN path excluding the files and folders recursively.

问题回答

Have you tried using xxcopy also a tool called Richcopy is good for this sort of thing.

If you use TortoiseSVN, you can accomplish a "copy from outside the working copy and remove any missing files" action using the vendor branch here feature.

Simply drag the folder containing the files you want to copy over using the right mouse button (i.e. right-click drag) and from the resulting context menu choose "vendor branch here". Then all you need to do is commit the changes.

This feature is intended to track 3rd-party libraries inside your own repository, but conceptually that s basically what you re doing: you re tracking changes in "MKS" inside a folder in your SVN repository.

/MIR is just the combination of /E and /PURGE.
Why not simply use /E and leave out /MIR?





相关问题
Best practices for Subversion and Visual Studio projects

I ve recently started working on various C# projects in Visual Studio as part of a plan for a large scale system that will be used to replace our current system that s built from a cobbling-together ...

Changing username in SVN+SSH URI on the fly in working copy

I am using SVN+SSH to check out a working copy of repository from an SVN server on which all developers are members of a developer group and have full read/write permissions on the repository ...

ASP.NET MVC: How should it work with subversion?

So, I have an asp.net mvc app that is being worked on by multiple developers in differing capacities. This is our first time working on a mvc app and my first time working with .NET. Our app does not ...

How to search for file in subversion server?

Is there a way to search for a file in a subversion repository? Something similar to Unix find command, with which I can find the location of a file in a repository. I know there is svn list, but ...

热门标签