mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-06 07:18:28 +01:00
@@ -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
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -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, " \
|
||||
|
||||
Reference in New Issue
Block a user