Send the specified revisions of the files to standard output.
src branch [delete|del|-d] ['branchname']
- Create, switch to, or delete a branch. With no arguments, list branches.
+ Create, switch to, or delete a branch. With no arguments, list branches;
+ the active branch is first in the list. The dafault branch is 'trunk'.
src tag [delete|del|-d] ['tagname'] ['revision-spec'] ['file'...]
Create, switch to, or delete a tag. With no arguments, list tags.
if not os.path.exists(repodir):
croak("repository subdirectory %s does not exist" % repodir)
args = list(args)
- croak("branches are not yet implemented.")
+ if not args:
+ sys.stdout.write("trunk\n")
+ else:
+ croak("branches are not yet implemented.")
def filecmd(legend, hook, args):
(revspec, args) = preamble(legend, args)
Send the specified revisions of the files to standard output.
src branch [delete|del|-d] ['branchname']::
- Create, switch to, or delete a branch. With no arguments, list branches.
+ Create, switch to, or delete a branch. With no arguments, list branches;
+ the active branch is first in the list. The dafault branch is 'trunk'.
src tag [delete|del|-d] ['tagname'] ['revision-spec'] ['file'...]::
Create, switch to, or delete a tag. With no arguments, list tags.