Adding new files to CVS without write access

In my previous post I talked about some useful Drupal CVS aliases. During the Core patch review sprint this weekend! I noticed a problem with it: adding new files.

Normally new files are added to CVS using the command:

cvs add

The problem is that this command fails without write access to the repository. Luckely there is a handy little tool called fakeadd which you can use to edit the CVS entries file and let it look like the new files have been added to the repository. The patch creation function also changes by adding the -N option.

drupal_create_patch() {
  cvs -q diff -uNRp . | grep -v "^\?" > /home/jensen/Desktop/jsomers_$1_$2.patch
}

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <br> <br />
  • Lines and paragraphs break automatically.
  • Textual smileys will be replaced with graphical ones.

More information about formatting options