def preamble(cmd, args):
"Common setup code."
+ if not os.path.exists(repodir):
+ croak("repository subdirectory %s does not exist" % repodir)
args = list(args)
revspec = None
if args:
def commit_method(*args):
"Commit changes to files."
+ if not os.path.exists(repodir):
+ croak("repository subdirectory %s does not exist" % repodir)
args = list(args)
comment = None
if args[0] == '--':
def tag_method(*args):
"Inspect, create, and delete tags."
+ if not os.path.exists(repodir):
+ croak("repository subdirectory %s does not exist" % repodir)
args = list(args)
if not args:
list_tags()
sys.stdout.write("data %s\n%s" % (len(item.log), item.log))
if last_commit_mark:
sys.stdout.write("from :%d\n" % last_commit_mark)
- # FIXME: Process executable bit
sys.stdout.write("M %s :%d '%s'\n\n" % (perms, mark, arg))
last_commit_mark = mark
mark += 1