https://pantsbuild.org/ logo
#development
Title
# development
b

billowy-beach-68498

09/29/2016, 7:42 PM
Copy code
tw-mbp-peiyu:pants peiyu$ ./pants -q changed --changes-since=HEAD^^ --include-dependees=direct |sort|grep testproject|grep gson
testprojects/src/java/org/pantsbuild/testproject/runtime:gson-unstable-compile-2
testprojects/src/java/org/pantsbuild/testproject/runtime:gson-unstable-compile-3
testprojects/src/java/org/pantsbuild/testproject/runtime:gson-unstable-runtime-1
testprojects/src/java/org/pantsbuild/testproject/runtime:gson-unstable-runtime-4
if I just use sha1, gson-unstable-compile-2 and gson-unstable-compile-3 will have the same sha since they have same address and scope, thus causing duplicate target names. we may want to use a dict to remember how many times each sha (or just address and scope combo) has occurred and use that as index, if it’s not too expensive.