If you have a clone of CESM that points to a release tag, then update it to a different release tag and rerun manage_externals/checkout_externals, you may get an error like the following:
As long as you have not made any modifications in the affected component directory, you can work around this problem by removing the affected component and rerunning checkout_externals. For example, in the above situation, you can run:
then rerun checkout_externals.For more details, see https://github.com/ESCOMP/cesm/issues/64#issuecomment-399587374
Code:
Checking out externals: clm, mosart, ww3, cime, cice, pop, ERROR:root:Command '[u'svn', u'switch', u'--quiet', u'https://svn-ccsm-models.cgd.ucar.edu/pop2/release_tags/pop2_cesm2_0_rel_n02']' returned non-zero exit status 1
ERROR:root:Failed with output:
svn: E195012: Path '.' does not share common version control ancestry with the requested switch location. Use --ignore-ancestry to disable this check.
svn: E195012: 'https://svn-ccsm-models.cgd.ucar.edu/pop2/release_tags/pop2_cesm2_0_rel_n02' shares no common ancestry with '/Users/sacks/cesm_code/cesm/components/pop'
ERROR: In directory
/Users/sacks/cesm_code/cesm/components/pop
Process did not run successfully; returned status 1:
svn switch --quiet https://svn-ccsm-models.cgd.ucar.edu/pop2/release_tags/pop2_cesm2_0_rel_n02
See above for output from failed command.
Please check the log file manage_externals.log for more details.
ERROR: Failed with output:
svn: E195012: Path '.' does not share common version control ancestry with the requested switch location. Use --ignore-ancestry to disable this check.
svn: E195012: 'https://svn-ccsm-models.cgd.ucar.edu/pop2/release_tags/pop2_cesm2_0_rel_n02' shares no common ancestry with '/Users/sacks/cesm_code/cesm/components/pop'
ERROR: In directory
/Users/sacks/cesm_code/cesm/components/pop
Process did not run successfully; returned status 1:
svn switch --quiet https://svn-ccsm-models.cgd.ucar.edu/pop2/release_tags/pop2_cesm2_0_rel_n02
See above for output from failed command.
Please check the log file manage_externals.log for more details.
Code:
rm -rf components/pop