If the server changes in the manifest, it crashes -
[pdq647@zin50andbld-02:/proj/repo01/workspace1/pdq647/01.00]$ repo
sync
Traceback (most recent call last):
File "/proj/repo01/workspace1/pdq647/01.00/.repo/repo/main.py", line
202, in ?
_Main(sys.argv[1:])
File "/proj/repo01/workspace1/pdq647/01.00/.repo/repo/main.py", line
186, in _Main
repo._Run(argv)
File "/proj/repo01/workspace1/pdq647/01.00/.repo/repo/main.py", line
96, in _Run
cmd.Execute(copts, cargs)
File "/proj/repo01/workspace1/pdq647/F9/.repo/repo/subcmds/sync.py",
line 78, in Execute
File "/proj/repo01/workspace1/pdq647/01.00/.repo/repo/command.py",
line 60, in GetProjects
all = self.manifest.projects
File "/proj/repo01/workspace1/pdq647/01.00/.repo/repo/manifest.py",
line 78, in projects
self._Load()
File "/proj/repo01/workspace1/pdq647/01.00/.repo/repo/manifest.py",
line 106, in _Load
if b.startswith(R_HEADS):
On Feb 27, 8:16 pm, Shawn Pearce <
s...@google.com> wrote:
> If the manifest changes, "repo sync" will update it automatically on the
> next sync.
>
> However, there are two things it doesn't deal with well right now:
>
> - project removed from the manifest: the project isn't removed from your
> working directory, but should be.
> - project removed from manifest and server: aside from the above, "repo
> sync" fails because it can't talk to that removed repository. "(cd
> .repo/manifests && git pull) && repo sync" usually fixes that, but its
> annoying and shouldn't require magic incantations.
>