Jim Walker writes: > > The webrev is here: > > > > http://cr.opensolaris.org/~carlsonj/webrev-440/ > > usr/src/tools/scripts/which_scm.sh > > 53 # Check for well-known tree-type source code systems. > > "source code systems" -> "source control management systems"
OK. > 54 function primary_type > 55 { > 56 typeset scmid > 57 > 58 [ -d "$1/Codemgr_wsdata" ] && scmid="$scmid teamware" > 59 [ -d "$1/.hg" ] && scmid="$scmid mercurial" > 60 [ -d "$1/CVS" ] && scmid="$scmid cvs" > 61 [ -d "$1/.svn" ] && scmid="$scmid subversion" > 62 echo $scmid > 63 } > > You may want to change the discovery order to: > > cvs > subversion > mercurial > teamware > > So teamware and mercurial are given higher priority in > cases where someone has left over scm config directories. No -- if there are multiple types detected, then which_scm intentionally errors out: % mkdir -p /tmp/foo % cd /tmp/foo % mkdir .hg % which_scm mercurial /tmp/foo % mkdir .svn unknown /tmp/foo % If the user attempts to run multiple SCM types in the same directory, he's on his own to do so. -- James Carlson, Solaris Networking <james.d.carlson at sun.com> Sun Microsystems / 35 Network Drive 71.232W Vox +1 781 442 2084 MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677