Merge pull request #1120 from efiop/master

Misc enhancements
This commit is contained in:
Ruslan Kuprieiev
2018-09-15 05:08:54 +03:00
committed by GitHub
3 changed files with 8 additions and 4 deletions
+8
View File
@@ -805,4 +805,12 @@ def parse_args(argv=None):
pipeline_show_parser.error(msg)
args.targets = ['Dvcfile']
if issubclass(args.func, CmdRun) \
and len(args.deps) == 0 \
and len(args.outs) == 0 \
and len(args.outs_no_cache) == 0 \
and len(args.command) == 0:
run_parser.error("Too few arguments. Specify at least one: "
"'-d', '-o', '-O', 'command'.")
return args
-1
View File
@@ -106,7 +106,6 @@ class Project(object):
def _ignore(self):
flist = [self.state.state_file,
self.link_state.state_file,
self.lock.lock_file,
self.config.config_local_file,
self.updater.updater_file]
-3
View File
@@ -14,7 +14,6 @@ class StateDuplicateError(DvcException):
class State(object):
STATE_FILE = 'state'
STATE_LOCK_FILE = 'state.lock'
STATE_TABLE = 'state'
STATE_TABLE_LAYOUT = "inode TEXT PRIMARY KEY, " \
"mtime TEXT NOT NULL, " \
@@ -166,8 +165,6 @@ class State(object):
class LinkState(State):
STATE_FILE = 'link.state'
STATE_LOCK_FILE = STATE_FILE + '.lock'
STATE_TABLE = 'link'
STATE_TABLE_LAYOUT = "path TEXT PRIMARY KEY, " \
"inode TEXT NOT NULL, " \