support module in vcspull. See #43_which when executable is not found. Allow
specifying search paths manually.9 Support for progress_callback to use realtime output
from commands in progress (such as git fetch).9 More tests, internal factoring and documentation, thanks
@jcfr9 Official support for pypy, pypy311 : Fix unbound local when updating git repos7 Add check_returncode property to run, thanks @jcfr8 Remove all cases of run_buffered / buffering from
the library.5 Remove colorama dependency6 Remove log module. Logging defaults.The library user can still use formatters and set log levels, for an example, see the vcspull logging setup.
An example::
import logging
# your app
log.setLevel(level)
log.addHandler(logging.StreamHandler())
# vcslib logging options
vcslogger = logging.getLogger('libvcs')
vcslogger.propagate = False # don't pass libvcs settings up scope
vcslogger.addHandler(logging.StreamHandler())
vcslogger.setLevel(level)
You can also use logging.Formatter variables repo_name
and repo_vcs with repos::
repo_channel = logging.StreamHandler()
repo_formatter = logging.Formatter(
'[%(repo_name)s] (%(repo_vcs)s) %(levelname)1.1s: %(message)s'
)
repo_channel.setFormatter(repo_formatter)
vcslogger = logging.getLogger('libvcs')
vcslogger.propagate = False # don't pass libvcs settings up scope
vcslogger.addHandler(repo_channel)
vcslogger.setLevel(level)