changeset 28556 | 0706d60d070f |
parent 28364 | f1460af18c50 |
child 28557 | 4b83507bfc91 |
--- a/mercurial/branchmap.py Mon Mar 14 15:05:25 2016 +0000 +++ b/mercurial/branchmap.py Sun Mar 13 02:06:21 2016 +0100 @@ -461,6 +461,8 @@ self._rbcnamescount = 0 self._rbcrevslen = 0 if self._rbcnamescount == 0: + # before rewriting names, make sure references are removed + repo.vfs.unlinkpath(_rbcrevs, ignoremissing=True) f = repo.vfs.open(_rbcnames, 'wb') f.write('\0'.join(encoding.fromlocal(b) for b in self._names[self._rbcnamescount:]))