Reputation: 63
I am in a situation where we have used a plugin in our project, I am a front end developer so, a guy blamed on me that I have made changes directly inside the plugin code which is obviously a bad practice but I am pretty much sure I didn't do it.
We are using subversion and Trac for version control etc. The project ( and changes ) are very old almost 2-3 months old. Here is my question, How can I know that how many people and who has edited that one( suspected ) file till date?
Upvotes: 4
Views: 2738
Reputation: 107040
There's a really neat command in Subversion:
$ svn blame $file_name_or_url
This command will show you each and every line in a file, and who changed that line, and in what revision of Subversion where the change took place. You find the line that caused the problem, and you can find the last guy who touched that line.
You can use the svn log
command on a file to see who changed that file and when:
$ svn log $file_name_or_url
This will show you the complete history of that one file. You can also use the --diff
parameter to produce a diff output between each of the versions. However, the svn blame
command is probably best for what you want.
Upvotes: 3