On Thu, Aug 8, 2013 at 10:29 PM, Rene <[email protected]> wrote: > Well lets go the other way a repo, if not in an checkout, must always be > specified with -R. > and maybe if a -R repo is specified in a checkout the -R takes precedent.
When a checkout is opened, its corresponding repo db is automatically opened as well. Checkout-open fails if the corresponding repo cannot be opened, e.g. it's been moved or deleted. Commands which require a checkout do not explicitly look for -R, but that they instead do this: http://fossil-scm.org/index.html/artifact/770bdc0bc0647650f1c9b59d229964082c4d61f1?ln=1373 Commands which (indirectly) use -R (meaning they do not require a checkout) do this: http://fossil-scm.org/index.html/artifact/770bdc0bc0647650f1c9b59d229964082c4d61f1?ln=866 and that routine then checks for -R before looking for a checkout/repo combination, which, in essence, implements what you suggest: http://fossil-scm.org/index.html/artifact/0adc1aa79c24d8bc88b32e2ef7a8f29d32619d79?ln=1054-1084 FWIW: the the new/prototype libfossil code follows that same heuristic, but that's only a happy accident - it just seemed like the most logical choice. ----- stephan beal http://wanderinghorse.net/home/stephan/ http://gplus.to/sgbeal
_______________________________________________ fossil-users mailing list [email protected] http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

