Steve Kargl - Re: Overwrite a file with "svn update"? (original) (raw)
This is the mail archive of the gcc@gcc.gnu.orgmailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] |
- From: Steve Kargl
- To: Giovanni Bajo
- Cc: gcc at gcc dot gnu dot org
- Date: Sat, 19 Nov 2005 12:24:30 -0800
- Subject: Re: Overwrite a file with "svn update"?
- References: <20051119150235.GA69104@troutmask.apl.washington.edu> <00b801c5ed43$e9a36b00$04b12997@bagio>
On Sat, Nov 19, 2005 at 09:00:38PM +0100, Giovanni Bajo wrote:
Steve Kargl sgk@troutmask.apl.washington.edu wrote:
Perhaps, I missed the required options, but I'll ask an obvious question anyway. Often when testing a patch, one will often place a new testcase in gcc/testsuite/*. This new file is not under control of svn. After review, the patch is committed to the tree. Now, I want to update my local repository. I issue "svn update" and the result is
svn: Failed to add file 'gcc/testsuite/gfortran.dg/fgetc_1.f90':
object of the same name already existswhich is indeed correct. So, is there an option to tell svn to blow away files that conflict with files in the repository.
Why don't you just "svn add" the file? So you won't miss it in the commit, in the diffs, in the stats, and whatnot. "svn add" is a totally local operation and does not require write access to the remote repository. You can even do that on a tree checked out with svn:// and later switch the tree to svn+ssh:// to commit it.
This is during a review process. There is no guarantee that file will be committed. Additionally, by keeping the file out of svn, it severely reduces the probability of accidental commit.
-- Steve
- References:
- Overwrite a file with "svn update"?
* From: Steve Kargl - Re: Overwrite a file with "svn update"?
* From: Giovanni Bajo
- Overwrite a file with "svn update"?
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |