Replacing trunk with branch in Subversion

Though its a pretty old thread but still sharing my experience We recently did this for one of our projects and followed guidelines as: svn copy <repos/trunk> <repos/tag/old_trunk> -m “copied old trunk as tag” svn delete <repos/trunk> -m “deleted trunk temporarily” svn copy <repos/branch/new_fetaure_branch> <repos/trunk> -m “placed new trunk with features” Following these steps kept … Read more

SVN update: ‘skipped’ message

I guess you are getting this type of error. [user@user myprojectdir]# svn up Skipped ‘.’ do svn st from your project dir [user@user myprojectdir]# svn st svn: warning: ‘.’ is not a working copy it means you are not in your working dir. You might have done a wrong checkout. Correct way is this. [user@user … Read more

How do I properly remove an svn:externals and replace it with a local (non-external) copy of the same directory?

In the root of your working copy: svn propedit svn:externals . You should see a file in your editor of choice that has lines like this: path/to/extenal http://url/of/repo If you remove that line, then run a commit/update, it should remove the external definition from that path, and unlock the path. You may need to run … Read more

svn update is not updating!

You should use SVN revert. This would revert the files in your working copy to their original state. For more information and examples check the svn book here: http://svnbook.red-bean.com/en/1.1/re25.html

What does this svn2git error mean?

I had to open up the .git/config file and delete all the branches and tags entries under the svn-remote section and run the ‘git svn clone’ command for this error to go away. Apparently, if I run this command multiple times (usually stop and re-start from a revision), the branch/tag entries get added to the … Read more

How to detect file ends in newline?

Here is a useful bash function: function file_ends_with_newline() { [[ $(tail -c1 “$1” | wc -l) -gt 0 ]] } You can use it like: if ! file_ends_with_newline myfile.txt then echo “” >> myfile.txt fi # continue with other stuff that assumes myfile.txt ends with a newline

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)