jump to navigation

Find the person to ‘Blame’ when code break : svn blame October 19, 2007

Posted by sandakith in Open Source, Tooling.
trackback

So this is true, try svn blame and blame the person who own the line that breaks the latest code base. This will list the all the line numbers with the code owner of that line who changed it lastly with the revision number. This is really cool stuff and very much usefull.

See the example code chunk from WSO2 WSAS Project with ‘svn blame’.

5694 dims * http://www.apache.org/licenses/LICENSE-2.0
5694 dims *
5694 dims * Unless required by applicable law or agreed to in writing, software
5694 dims * distributed under the License is distributed on an “AS IS” BASIS,
5694 dims * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5694 dims * See the License for the specific language governing permissions and
5694 dims * limitations under the License.
5352 sandakith */
5694 dims
5352 sandakith package org.wso2.wsas.installer;
5352 sandakith
5352 sandakith import java.io.File;
5352 sandakith import java.io.IOException;
5352 sandakith
5352 sandakith import org.wso2.utils.FileManipulator;
5352 sandakith import org.wso2.utils.InputReader;
5352 sandakith
5352 sandakith /**
5381 ruchith * This class contributes the WSAS Eclipse WTP Plugin installation
5352 sandakith */
5352 sandakith public class EclipseWTPPluginInstaller {
5352 sandakith
5531 azeez private static FileManipulator fileMan = new FileManipulator();
5352 sandakith
5352 sandakith private EclipseWTPPluginInstaller() {
5352 sandakith }
5352 sandakith
7290 sandakith public static void install(String wsasHome) throws InstallationException {
5352 sandakith System.out.println(“\nStarting WSAS Eclipse WTP Plugin installation…”);
5352 sandakith
5352 sandakith // Get the $WTP_HOME dir
5352 sandakith String wtpHomeDir = System.getProperty(“WTP_HOME”);
5553 sandakith System.out.println(“Please shutdown the Eclipse instance, If Already Running..”);
5352 sandakith while (wtpHomeDir == null || wtpHomeDir.trim().length() == 0) {
5352 sandakith System.out.print(“Please enter Eclipse WTP Home : “);
5352 sandakith try {
5531 azeez wtpHomeDir = InputReader.readInput();

Comments»

1. Komal - October 6, 2009

Is there an api available for it, if commands are not to be used?
And is it possible to get it only with line nos without the owners name?


Leave a comment