tg-create.sh: make sure creation does not lose .topdeps or .topmsg
commit1102fcea66a0d92ee67a3f9daffb247c255505a5
authorKyle J. McKay <mackyle@gmail.com>
Mon, 27 Mar 2017 22:44:31 +0000 (27 15:44 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Mon, 27 Mar 2017 22:44:31 +0000 (27 15:44 -0700)
tree36f7cf3a45baaedb9895d1afb6a08f7c32bcc2dd
parentc1f60f6994b3a5cd295b923b54b919ae1e1632d9
tg-create.sh: make sure creation does not lose .topdeps or .topmsg

The tg create command necessarily writes new .topdeps and .topmsg
files.  The overwrite checking was suboptimal when an unborn
branch was involved.

Correct this by using the new ensure_clean_topfiles function to
try and guarantee that if .topdeps and/or .topmsg are present
in the working tree they are also exist in an identical version
in the index and HEAD commit.

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