All regression tests pass.
croak(" %s creation failed, check directory permissions." % repodir)
args = list(args)
addonly = False
+ parse_revspec = True
while args:
if args[0] == '--':
args.pop(0)
+ parse_revspec = False
break
elif args[0] == '-a':
addonly = True
+ parse_revspec = False
args.pop(0)
else:
break
comment = CommentContext("commit", args)
ctx = CommandContext("commit", args,
require_empty=True,
- parse_revspec=not addonly and comment.parse_revspec)
+ parse_revspec=parse_revspec and comment.parse_revspec)
for arg in ctx.args:
if not os.path.exists(arg):
croak("I see no '%s' here." % arg)