for arg in ctx.args:
if not os.path.exists(arg):
croak("I see no '%s' here." % arg)
+ if os.path.isdir(arg):
+ croak("cannot commit directory '%s'" % arg)
+ for arg in ctx.args:
if registered(arg):
metadata = History(arg)
ctx.resolve(metadata)
croak("I see no '%s' here." % arg)
elif os.path.exists(backend.history(arg)):
croak("%s is already registered." % arg)
- else:
+ elif os.path.isdir(arg):
+ croak("cannot commit directory '%s'" % arg)
+ for arg in ctx.args:
+ if not os.path.exists(backend.history(arg)):
backend.add(arg)
if not quiet and len(ctx.args) > 1:
announce("%s -> 0" % arg)
default_to="branch_reversed",
parse_revspec=parse_revspec)
for arg in ctx.args:
- if ignore(arg) or not registered(arg):
+ if ignore(arg) or os.path.isdir(arg) or not registered(arg):
continue
if custom is None:
sys.stdout.write("= %s %s\n" % (arg, ((WIDTH - len(arg) - 3) * "=")))
default_to="branch_reversed",
parse_revspec=parse_revspec)
for arg in ctx.args:
- if ignore(arg) or not registered(arg):
+ if ignore(arg) or os.path.isdir(arg) or not registered(arg):
continue
sys.stdout.write("= %s %s\n" % (arg, ((WIDTH - len(arg) - 3) * "=")))
for item in ctx.resolve(History(arg), backwards=True):