I did a test, which gave me the following results:
associated changesets are still there
builds will run fine
However, a new value for “Manual Poll URL” is generated. This will make all associated TFS WebHooks become invalid.
If the path to the repo is actually the same, because only the protocol/port changes, the configuration should not be changed. This should also avoid the recreation of ContinuaCI’s repo cache, which is unnecessary. This has been discussed before: How to change URL to git repository
The repository cache will still be reset when only the scheme (or port) is changed. This cleans the repository cache working folder and then clones the repository, so files such as .gitmodules will be re-fetched, therefore Continua CI’s handling should be the same as with a new repository.
The difference is that the repository and changesets in the database will now remain intact, instead of being recreated.