Replace "tg-migrate-bases.sh: handle HEAD symrefs"
commitd4928c4d1f89f644cb0c898512b6ab05c96db56e
authorKyle J. McKay <mackyle@gmail.com>
Thu, 23 Mar 2017 22:49:06 +0000 (23 15:49 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Thu, 23 Mar 2017 22:49:06 +0000 (23 15:49 -0700)
tree0fc2acf49297b42f3404d4f1847689f736feb48c
parent7d1fd149a7417c10a0ed38e598bde178e965eed6
Replace "tg-migrate-bases.sh: handle HEAD symrefs"

This partially reverts the previous commit that added
tg migrate-bases handling of symrefs.

Always plan to throw one away they say.  Consider it thrown.

Replace the previous code with something more elegant and
that properly handles linked working trees if present.

Any updated symrefs now get their own "symref:" line
that makes clear what's really going on.

Handling updates of symrefs to bases is really an edge case
to begin with and dealing with such in linked working trees
even more so.

However, it seems it's always the edge cases that turn
around and bite you in the *cough*, so here's the support.

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