Skip to content

Commit

Permalink
Use label not name to deduplicate in graphless genquery.
Browse files Browse the repository at this point in the history
RELNOTES: None
PiperOrigin-RevId: 278385572
  • Loading branch information
meisterT authored and copybara-github committed Nov 4, 2019
1 parent d601c38 commit afc7581
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ private GenQueryResult doQuery(
Set<Target> result = targets.getResult();
if (graphlessQuery) {
Comparator<Target> comparator =
(Target t1, Target t2) -> t1.getName().compareTo(t2.getName());
(Target t1, Target t2) -> t1.getLabel().compareTo(t2.getLabel());
result = ImmutableSortedSet.copyOf(comparator, targets.getResult());
}
QueryOutputUtils.output(
Expand Down

0 comments on commit afc7581

Please sign in to comment.