Refactor backup creation to BackupRef

Rename BackupBranch to BackupRef, and refactor backup creation out
of RefUpdateListener.

Moving the functionality into the BackupRef class will enable some
amount of configuration to how the backups are performed, and avoids
overloading too much logic in the RefUpdateListener.

Change-Id: Iced4ff7e563b6978bb29e2301a3672dc183b971e
5 files changed
tree: c0cdaa4de4d48b84e20d7ea4db1e9568a6d32b2a
  1. src/
  2. .gitignore
  3. BUCK