Skip to main content



      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 04:20 Go to next message
Eclipse UserFriend
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.
Re: Prevent file from being commited to CVS [message #509578 is a reply to message #509364] Sat, 23 January 2010 02:27 Go to previous messageGo to next message
Eclipse UserFriend
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 04:34 Go to previous messageGo to next message
Eclipse UserFriend
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.
Re: Prevent file from being commited to CVS [message #510693 is a reply to message #510323] Thu, 28 January 2010 06:06 Go to previous messageGo to next message
Eclipse UserFriend
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 10:50 Go to previous messageGo to next message
Eclipse UserFriend
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 03:20 Go to previous messageGo to next message
Eclipse UserFriend
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)

[Updated on: Mon, 01 February 2010 03:25] by Moderator

Re: Prevent file from being commited to CVS [message #513304 is a reply to message #511302] Tue, 09 February 2010 12:37 Go to previous message
Eclipse UserFriend
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: Wed Jul 23 00:40:37 EDT 2025

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

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

Back to the top