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?

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top