tg: awksome accelerate top-bases computation
commita42def5c6d4765258f9a79c24042913ff7289a15
authorKyle J. McKay <mackyle@gmail.com>
Thu, 30 Mar 2017 13:08:55 +0000 (30 06:08 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Thu, 30 Mar 2017 13:08:55 +0000 (30 06:08 -0700)
tree6161cbf5384e045914fdc02d8224bf0f5b1d9333
parentbe583a266553ac147a92585cb16c97cd570eb0bb
tg: awksome accelerate top-bases computation

Make use of the new run_awk_ref_prefixes function to compute
the active top-bases prefix for the repository or the remote
being populated.

Although only performed once at tg startup (or remote --populate
time), using the awksome function makes the overhead for the
computation practically nil.  It also brings the side benefit
of ignoring orphan bases (bases with no corresponding head) to
the remote --populate operation.  A win all around.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
tg-remote.sh
tg.sh