[cvsnt] How to get the new admin files in build 2214 into existingCVSROOT?

Michael Wojcik Michael.Wojcik at microfocus.com
Thu Jan 19 00:03:01 GMT 2006


Community technical support mailing list was retired 2010 and replaced with a professional technical support team. For assistance please contact: Pre-sales Technical support via email to sales@march-hare.com.


> From: cvsnt-bounces at cvsnt.org 
> [mailto:cvsnt-bounces at cvsnt.org] On Behalf Of Glen Starrett
> 
> Bo Berglund wrote:
> > And I must make sure to *not* overwrite a file that was there
already
> > but I did not recognize lest I lose the edits thta might already
have
> > gone into it...
> 
> Do this then:
> 
> xcopy /my/old/cvsroot /my/temp/cvsroot
> xcopy /my/temp/cvsroot /my/old/cvsroot

Wouldn't it be simpler and safer to do:

	attrib +r /my/old/cvsroot/*
	xcopy /my/temp/cvsroot /my/old/cvsroot
	attrib -r /my/old/cvsroot/*

Unless it's given the /r switch, xcopy won't copy over read-only files.
(It's unfortunate that xcopy has a "only copy files that already exist
in the destination" option, but not the reverse.)

-- 
Michael Wojcik
Principal Software Systems Developer, Micro Focus




More information about the cvsnt mailing list
Download the latest CVSNT, TortosieCVS, WinCVS etc. for Windows 8 etc.
@CVSNT on Twitter   CVSNT on Facebook