exception during annotate copied file fixed

*file status should be "added" if  file was "copied" , because we do not provide beforeRevision in this case (if file status is copied then HgUtil.getOriginalFileName assert statement become false, exception appeared )
This commit is contained in:
Nadya Zabrodina
2013-08-27 19:22:08 +04:00
parent 66640b2995
commit 46b8998435
@@ -221,10 +221,11 @@ public class HgChangeProvider implements ChangeProvider {
// The original file exists so this is a duplication of the file.
// Don't create the before ContentRevision or IDEA will think
// this was a rename.
//todo: fix this unexpected status behavior (sometimes added status instead of copied, and copied instead of renamed )
processChange(
null,
HgCurrentContentRevision.create(afterFile, currentNumber),
HgChangeProvider.COPIED,
FileStatus.ADDED,
builder,
vcsKey
);