[PATCH] shelve: adds restoring newly created branch (issue5048)

Yuya Nishihara yuya at tcha.org
Fri Feb 26 08:58:58 EST 2016


On Wed, 24 Feb 2016 17:52:25 +0100, Piotr Listkiewicz wrote:
> >
> > Right. I think we won't have to bump the version in this case.
>
>  Right, but what to do with reading old version of state file(without
> restoring branch information) with newer client?

Not restoring the branch, as the branch information isn't stored in the old
state file. fp.readline() will return ''.

> I would bump version of
> file to mark that file has information about branch in last line, but older
> version of mercurial would crash because it checks whether version of file
> is equals version in sources.

If both old/new clients can read old/new state files, we don't need to bump
the version.


More information about the Mercurial-devel mailing list