Having looked for "Mercurial" it seems to me that you would add even more complexity to the use of B4A. A much more easy to set-up backup-system as it seems to me is "Autover"
Beans Place: AutoVer that copies and time-stamps any (selectable) file as soon as it is changed on the disk.
Regards, positrom2