Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Prevent file from being commited to CVS
Prevent file from being commited to CVS [message #509364] Fri, 22 January 2010 09:20 Go to next message
Axel Mueller is currently offline Axel Mueller
Messages: 1964
Registered: July 2009
Senior Member
Regard the following scenario:
1. I have made some local changes to a file that is under CVS control
2. I know that I will never (and should not!) commit these changes back to CVS (e.g. I activated some debug code that is only necessary for local debugging)

What I want is to "lock" the file locally. That is, I am not able to commit this file to CVS. But a CVS sync will still show me if a new version exists (and I can merge locally). Of course, I should be able to remove the lock when I reverted my temporary changes.


Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Re: Prevent file from being commited to CVS [message #509578 is a reply to message #509364] Sat, 23 January 2010 07:27 Go to previous messageGo to next message
Deepak Azad is currently offline Deepak Azad
Messages: 545
Registered: July 2009
Senior Member
On 1/22/2010 2:50 PM, Axel Mueller wrote:
> Regard the following scenario:
> 1. I have made some local changes to a file that is under CVS control
> 2. I know that I will never (and should not!) commit these changes back
> to CVS (e.g. I activated some debug code that is only necessary for
> local debugging)
>
> What I want is to "lock" the file locally. That is, I am not able to
> commit this file to CVS. But a CVS sync will still show me if a new
> version exists (and I can merge locally). Of course, I should be able to
> remove the lock when I reverted my temporary changes.
In 'Team Synchronizing' perspective, right click on an outgoing change
-> add to .cvsignore.
Re: Prevent file from being commited to CVS [message #510323 is a reply to message #509578] Wed, 27 January 2010 09:34 Go to previous messageGo to next message
Axel Mueller is currently offline Axel Mueller
Messages: 1964
Registered: July 2009
Senior Member
Quote:
In 'Team Synchronizing' perspective, right click on an outgoing change
-> add to .cvsignore.

But wouldn't the .csvignore file be committed to the CVS server? Thus, everybody else would not be able to commit this file? As mentioned before, the file in question is already under CVS control, I just want to make the sure that my temporary changes are not committed accidentally.


Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Re: Prevent file from being commited to CVS [message #510693 is a reply to message #510323] Thu, 28 January 2010 11:06 Go to previous messageGo to next message
Tomasz Zarna is currently offline Tomasz Zarna
Messages: 165
Registered: July 2009
Senior Member
I'm afraid there is currently no way to achieve that. You could try creating a global ignore pattern on the Team>Ignored Resources preference page, but my guess is it won't work neither. Your scenario sounds reasonable to me, so you could open an enhancement request on Eclipse bugzilla. In the meantime, please have a look at bug 112549 which looks similar.
Re: Prevent file from being commited to CVS [message #511234 is a reply to message #510323] Sun, 31 January 2010 15:50 Go to previous messageGo to next message
Deepak Azad is currently offline Deepak Azad
Messages: 545
Registered: July 2009
Senior Member
On 1/27/2010 3:04 PM, Axel Mueller wrote:
> Quote:
>> In 'Team Synchronizing' perspective, right click on an outgoing change
>> -> add to .cvsignore.
>
> But wouldn't the .csvignore file be committed to the CVS server? Thus,
> everybody else would not be able to commit this file? As mentioned
> before, the file in question is already under CVS control, I just want
> to make the sure that my temporary changes are not committed accidentally.

Add .cvsignore to .cvsignore as well.
Re: Prevent file from being commited to CVS [message #511302 is a reply to message #511234] Mon, 01 February 2010 08:20 Go to previous messageGo to next message
Axel Mueller is currently offline Axel Mueller
Messages: 1964
Registered: July 2009
Senior Member
Quote:
In 'Team Synchronizing' perspective, right click on an outgoing change
-> add to .cvsignore

Unfortunately, the .cvsignore trick does not work. Eclipse greys out the "Add to .cvsignore" option if the file is already under CVS control. Manually adding the file to .cvsignore does not work either. It seems .cvsignore (and Eclipse) ignores files that are under CVS control. The same holds for the Team>Ignored Resources preference page.

Quote:
please have a look at bug 112549 which looks similar.

There are some similarities between my request and this bug, but I guess I have to open a new bugzilla request.
(see https://bugs.eclipse.org/bugs/show_bug.cgi?id=301389)


Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google

[Updated on: Mon, 01 February 2010 08:25]

Report message to a moderator

Re: Prevent file from being commited to CVS [message #513304 is a reply to message #511302] Tue, 09 February 2010 17:37 Go to previous message
Eric Rizzo is currently offline Eric Rizzo
Messages: 2313
Registered: July 2009
Senior Member
On 2/1/10 3:20 AM, Axel Mueller wrote:
> Quote:
>> In 'Team Synchronizing' perspective, right click on an outgoing change
>> -> add to .cvsignore
>
> Unfortunately, the .cvsignore trick does not work. Eclipse greys out the
> "Add to .cvsignore" option if the file is already under CVS control.
> Manually adding the file to .cvsignore does not work either. It seems
> .cvsignore (and Eclipse) ignores files that are under CVS control.

By the way, that's a feature of cvs (not Eclipse-specific); once a file
is known in the repository it can't be ignored. I suppose an
administrator could manually remove it from the repository, which makes
cvs "forget" that it ever knew the file. But IIUC that's not a solution
to the original problem discussed here.

Eric
Previous Topic:Editor association seems broken in Helios
Next Topic:Customizing tooltip for Eclipse perspective
Goto Forum:
  


Current Time: Sat Oct 25 11:22:54 GMT 2014

Powered by FUDForum. Page generated in 0.01859 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software