tg-revert.sh: do reverse topbases conversion if necessary
commit64dce575f19f5c6f0da19ca410762442408c4610
authorKyle J. McKay <mackyle@gmail.com>
Tue, 17 Jan 2017 10:29:22 +0000 (17 02:29 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Tue, 17 Jan 2017 10:29:22 +0000 (17 02:29 -0800)
tree43fe99f3d5dc80230c7bcd5ae06d18c5df4fc9be
parent4bfeec63834a054e6db86f0332e2520f3fea2a5f
tg-revert.sh: do reverse topbases conversion if necessary

If topgit.top-bases is set to refs it's necessary to do the
reverse conversion from the "new" heads location to the "old"
refs location otherwise it won't be possible to revert using
the data stored in the tag.

This situation could arise if upstream migrates to the new
location before downstream does and needs to access some old
ref values from a new upstream tag.

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