mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
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:
@@ -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
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user