Mercurial > jhg
comparison src/org/tmatesoft/hg/core/HgStatus.java @ 140:1c1891ad1c73
Slight optimization
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Wed, 16 Feb 2011 22:33:04 +0100 |
parents | 4a948ec83980 |
children | b9700740553a |
comparison
equal
deleted
inserted
replaced
139:f3c387ea0a34 | 140:1c1891ad1c73 |
---|---|
71 */ | 71 */ |
72 public String getModificationAuthor() { | 72 public String getModificationAuthor() { |
73 Changeset cset = logHelper.findLatestChangeWith(path); | 73 Changeset cset = logHelper.findLatestChangeWith(path); |
74 if (cset == null) { | 74 if (cset == null) { |
75 if (kind == Kind.Modified || kind == Kind.Added || kind == Kind.Removed /*&& RightBoundary is TIP*/) { | 75 if (kind == Kind.Modified || kind == Kind.Added || kind == Kind.Removed /*&& RightBoundary is TIP*/) { |
76 // perhaps, also for Kind.Missing? | |
76 return logHelper.getNextCommitUsername(); | 77 return logHelper.getNextCommitUsername(); |
77 } | 78 } |
78 } else { | 79 } else { |
79 return cset.user(); | 80 return cset.user(); |
80 } | 81 } |