mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
push/pull/status -c: should warn on no checksum locally and remotely
This commit is contained in:
@@ -2,6 +2,7 @@ import yaml
|
||||
import os
|
||||
|
||||
from dvc.scm import Git
|
||||
from dvc.utils.compat import StringIO
|
||||
from mock import MagicMock
|
||||
from contextlib import contextmanager
|
||||
|
||||
@@ -27,6 +28,18 @@ def load_stage_file(path):
|
||||
return yaml.safe_load(fobj)
|
||||
|
||||
|
||||
def reset_logger_error_output():
|
||||
from dvc.logger import logger
|
||||
|
||||
logger.handlers[1].stream = StringIO()
|
||||
|
||||
|
||||
def reset_logger_standard_output():
|
||||
from dvc.logger import logger
|
||||
|
||||
logger.handlers[0].stream = StringIO()
|
||||
|
||||
|
||||
@contextmanager
|
||||
def cd(newdir):
|
||||
prevdir = os.getcwd()
|
||||
|
||||
Reference in New Issue
Block a user