Skip to content

Commit 25432ce

Browse files
authored
file renaming + repoaction enhancement (#112)
1 parent e773d0c commit 25432ce

File tree

7 files changed

+9
-8
lines changed

7 files changed

+9
-8
lines changed

mlc/action_factory.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
from .RepoAction import RepoAction
2-
from .ScriptAction import ScriptAction
3-
from .CacheAction import CacheAction
1+
from .repo_action import RepoAction
2+
from .script_action import ScriptAction
3+
from .cache_action import CacheAction
44

55

66
# Factory to get the appropriate action class
File renamed without changes.
File renamed without changes.

mlc/main.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
from . import utils
77

88
from .action import Action, logger, default_parent
9-
from .RepoAction import RepoAction
10-
from .ScriptAction import ScriptAction
11-
from .CacheAction import CacheAction
12-
from .CfgAction import CfgAction
13-
from .ExperimentAction import ExperimentAction
9+
from .repo_action import RepoAction
10+
from .script_action import ScriptAction
11+
from .cache_action import CacheAction
12+
from .cfg_action import CfgAction
13+
from .experiment_action import ExperimentAction
1414

1515
from .item import Item
1616
from .action_factory import get_action
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ def pull_repo(self, repo_url, branch=None, checkout = None, tag = None, pat = No
246246

247247
if local_changes.stdout.strip():
248248
logger.warning("There are local changes in the repository. Please commit or stash them before checking out.")
249+
print(local_changes.stdout.strip())
249250
return {"return": 0, "warning": f"Local changes detected in the already existing repository: {repo_path}, skipping the pull"}
250251
else:
251252
logger.info("No local changes detected. Fetching latest changes...")

0 commit comments

Comments
 (0)