Move command parsing code into its own function: run_cmd() Factor out cmdlog_start()/cmdlog_end() and move them outside run_cmd().
Move command parsing code into its own function: run_cmd()
Factor out cmdlog_start()/cmdlog_end() and move them outside run_cmd().

bk: 39c6e377yVCMqAwVMSqbGUSmg9y8Xw
bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper