2 Replies Last post: Feb 12, 2014 11:09 PM by Travis Fettig  
Travis Fettig Newbie 6 posts since
Feb 12, 2014
Currently Being Moderated

Feb 12, 2014 7:20 PM

Remove write permissions ("Lock" files outside version control)

So I'm frequently deailing with mutiple issues at once in a single project.  Each of these tasks gets tossed into a seperate change list (task) orginaized so all the files for the same change can get submitted into version control at the same time.  When it's done the files get locked in the VCS and are put up for code review.  This is fine when the seperate tasks are for total different features and the files have nothing to do with each other.  No problems there.

 

The problem I have is when the tasks deal with the same features, and I the risk touching the same files.  The other senario is that my code reviewers might take a day to get to it (they are busy) and I'm moving on to the next phase of the task.  Again, if I'm not careful I risk touching the files from task one while working on task two, and then my code review is worthless.  I also can't shelf changes since phase two depends on phase one.

 

Is there a way I can lock files down so that if I'm working phase two and wander into a file I locked that I'll get a warning of some sort that I'm about to do something bad?

 

I know I can change file permissions and remove write permissions, but I'd like to stay within the IDE.

 

Am I missing an existing feature, or do I need to submit a feature request?

Andriy Bazanov Master 3,637 posts since
May 28, 2010
Currently Being Moderated
Feb 12, 2014 8:01 PM in response to: Travis Fettig
Re: Remove write permissions ("Lock" files outside version control)

Hi there,

 

Have you looked at "File | Mark File Read only"  (also accessible from status bar -- the lock icon next to inspector guy / encoding) ?

More Like This

  • Retrieving data ...