tg.sh: make needs_update return 1 for out-of-date remote
commit7053376fdcd6484cb1ec6e275cb547f8c71dfb1b
authorKyle J. McKay <mackyle@gmail.com>
Mon, 19 Jun 2017 19:49:39 +0000 (19 12:49 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Mon, 19 Jun 2017 19:49:39 +0000 (19 12:49 -0700)
treec6e428d1fdede6c8f9be7ecf5f3afbfed55b8316
parente373960236c504a9c4ed83066fad3e3df08ba468
tg.sh: make needs_update return 1 for out-of-date remote

Fix the regression since 0.19.1 that caused needs_update to return
a 0 status if the only needed update was from a remote branch.

Turns out most clients only care about the output not the actual
status code so the only affected caller was tg export which would
have failed to cancel an export of a branch only out-of-date in
that fashion.

Correct this and make tg export picky again.  The non-picky-about-
out-of-date-remote-heads behavior can always be obtained whenever
desired by simply using the global -u option.

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