tg.sh: improve needs_update_check remote base handling
commitdf4655865abb8a30659c5b471235b60033944079
authorKyle J. McKay <mackyle@gmail.com>
Tue, 20 Jun 2017 00:39:41 +0000 (19 17:39 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Tue, 20 Jun 2017 00:39:41 +0000 (19 17:39 -0700)
tree85ba4fa7c2e41ef742a3ef47c60ffd2b6162dca6
parentae98d9d18415f10ba65aeebdcd942d86f30ddb60
tg.sh: improve needs_update_check remote base handling

Ignore the refs/remotes/... dependency line generated by recurse_deps
and check the remote base at the same time and handle the result the
same way the remote head is handled.

This makes use of needs_update_check_no_same(self) work more sanely.

Otherwise a remote base that's ahead triggers a "behind" for the
branch while a remote head that's ahead does not and that's just wrong.

The tg summary display should now be copacetic (even more so than it's
ever been before).

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