Questions tagged [blame]

Blame is the annotation of source code showing who last edited each section or line.

Blame is the annotation of source code in a revision control system with metadata indicating the most recent commit that changed a particular section or line of code. The information typically includes a commit id, the identify of the user who made the change, and the timestamp of the change.

Commands for various revision control systems include:

  • RCS: (no such command is available)
  • CVS: cvs annotate
  • Subversion: svn blame (aliases are svn praise, svn annotate, svn ann)
  • Git: git blame (git annotate is similar but uses a slightly different output format)
  • Mercurial: hg blame (alias hg annotate)
125 questions
1
vote
0 answers

svn blame on a partial file

My xml file editor/manager executes svn blame to determine which elements are not committed in svn. Since the files are so large, there is a major performance issue doing this. How do I execute svn blame on only specific lines of the file?
Yirmiyahu Fischer
  • 503
  • 2
  • 9
  • 22
1
vote
1 answer

Sonar 6.1 : Unable to TFS annotate the project and Missing blame information for the following files

We are using Sonar 6.1. SCM provider for this project is: tfvc. Even though we have provided the tfvc settings like username and PAT/password we are getting the below error. 2017-01-18T06:44:22.9837227Z INFO: SCM provider for this project is:…
1
vote
1 answer

How to JGit blame a file before commit?

Context: My merge ran into conflicts and I have a file like this example: Foo.txt (merged) 1 <<<<<< HEAD 2-master ====== 2-side >>>>>> df803849788fde47965b3dc8f07f07d48320ea9c 3 Question: In order to get the developers who actually changed the…
1
vote
1 answer

Is there a way to blame someone else or be able to change the blamee in subversion/TortoiseSVN?

I have a project I am working on that is being version controlled on a local machine. I have changes made by another person outside of the network/company that I need to incorporate into my project but I want to be able to put the "blame" on them…
dewalla
  • 1,317
  • 8
  • 18
  • 42
1
vote
1 answer

Can't see line based SCM blame infomation in Sonar

I am currently trying SCM blame feature in latest (5.1.2) SonarQube. My problem is that retrieved blame shows only latest commit for entire file. This mean that one user is responsible for entire file. According to documentation it should be…
Petr Nový
  • 13
  • 3
1
vote
2 answers

How to get list of all people who change specific file in svn?

I have got project in some repo using svn. There are a lot of files and people, who changing this files. By "svn blame" I can see who change the specific file, but I don't know how to get a list of all people who change this file. To sum up I would…
John Kikinio
  • 21
  • 1
  • 4
1
vote
1 answer

Example to understand git blame -M / -C

I am working on understanding how git blame -M and git blame -C is working. I created two files: FileA: A B C FileB: D E F and added (and committed) them to my repository (hash 1234). Then I copied the content of FileB to FileA so that it looks…
Paddre
  • 798
  • 1
  • 9
  • 19
1
vote
1 answer

Bzr Blame Statistics

I want to get a list of the committers and the number of lines they've contributed, eg, the same as Git: Blame Statistics except for a Bzr branch instead of a Git branch.
robru
  • 2,313
  • 2
  • 29
  • 38
1
vote
1 answer

how to "blame" on selection using bzr explorer or via console?

I want to do something like git blame - not on a whole file but on a code snippet (selection) how can I do this in bzr (console or bzr explorer) ?
Elad Benda
  • 35,076
  • 87
  • 265
  • 471
1
vote
2 answers

How to find out who removed a line of code in a branch?

We're getting an error in one of our branches in deployment and looking at it I see that one file is missing a line of code. How do I find out who removed it and when? I know this has something to do with hg blame, but seems every time I try to use…
George Mauer
  • 117,483
  • 131
  • 382
  • 612
1
vote
2 answers

How do I find out who was last to modify file in accurev (command line)?

I am writing command line tool which builds content of the stream in accurev and then notifies users that broke the build. I can get the list of files promoted to the stream with command: accurev.exe stat -fex -d -s -R .\ It…
Ivan Lebediev
  • 507
  • 4
  • 15
1
vote
1 answer

How to fully annotate (blame) source with copy detection?

I know that I can enable annotations in Eclipse using (right mouse click on a line) – Team – Show Annotations. However, that does not use copy detection or move detection machinery of git. With git gui blame I can select "Do Full Copy Detection"…
Mikko Rantalainen
  • 14,132
  • 10
  • 74
  • 112
1
vote
1 answer

Log command for majority contribution per file with code metrics

Is there a way to run a Git log command with a majority contributor (author)? I want to use that along with a code metric tool to be able to essentially show the quality of code produced per contributor. File Author Cyclomatic Complexity …
jdev4ls
  • 99
  • 1
  • 6
1
vote
1 answer

svn blame properties with command line svn

I am trying to get an svn blame out of svn for the svn properties. I expected there would be something like: svn blame --prop . but I cannot find such an option.
Veda
  • 2,025
  • 1
  • 18
  • 34
1
vote
1 answer

How to git blame to see what code from a single committer before X date has survived?

I joined a very experienced developer team as a complete RoR newb a year ago and now we're trying to guess how much of the code I wrote in the first six months has survived. I think I can use git blame on the entire repo and then grep for my…
Darren Nix
  • 136
  • 1
  • 10
1 2 3
8 9