backups: make compatible with hg core >= c8e2d6ed1f9e

Authored by martinvonz.