How to commit a large chunk of modified files in svn.


Recently while working on a project controlled with svn, I had modified a lot of files and had to check them in.
Now being a lazy person, I didnt wanted to send files one after the other.

Thus, on Googling came across this wonderful method that uses a target file to commit a large chunk of files.

So Let's check the environment by typing the command : -

Note you can use directly the second command and skip this one.
>>  svn stat | grep ^M | tee modified.log
This command - check for the status of files which are modified. (svn stat | grep ^M)
Adds the output to a file tee modified.log.
>> svn stat | grep ^M | cut -c 8- > modified.log
This will overwrite the previously created file.

To checkin the files type the following command
>> svn ci -m "Message you wish to pass" --targets modified.log

Hope you will enjoy this post. :)

Comments

Popular posts from this blog

SOX - Sound eXchange - How to use SOX for audio processing tasks in research.

Sox of Silence - Original post - http://digitalcardboard.com/blog/2009/08/25/the-sox-of-silence/

How to get video or audio duration of a file using ffmpeg?