From 0a2660513e972f2ab8e6e6db50c2d5fb3a5a6230 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Sun, 7 Jan 2018 00:52:41 -0800 Subject: [PATCH] Bugfix: gc - nice output formatting --- dvc/project.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dvc/project.py b/dvc/project.py index 64b13c4b2..8c3a57011 100644 --- a/dvc/project.py +++ b/dvc/project.py @@ -107,6 +107,9 @@ class Project(object): return Project(root_dir) + def to_dvc_path(self, path): + return os.path.relpath(path, self.root_dir) + def add(self, fname): path = os.path.abspath(fname) + Stage.STAGE_FILE_SUFFIX cwd = os.path.dirname(path) @@ -202,7 +205,7 @@ class Project(object): if cache in clist: continue os.unlink(cache) - self.logger.info('\'{}\' was removed'.format(cache)) + self.logger.info(u'\'{}\' was removed'.format(self.to_dvc_path(cache))) def push(self, jobs=1): self.cloud.push(self._used_cache(), jobs)