Added support for upgrading (via rebase) from another source.