view tests/test-help.out @ 500:ebc4714a7632

[PATCH] Clean up destination directory if a clone fails. -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 [PATCH] Clean up destination directory if a clone fails. From: Bryan O'Sullivan <bos@serpentine.com> On Mon, 2005-06-27 at 16:27 +0800, Soh Tk-r28629 wrote: > Hg clone left the dest directory if the source isn't valid. > I think it should either validate the source before mkdir, or do a > rmdir to clean it up. Good suggestion, thanks. As validating the source in advance isn't really practical, I opted for the latter. manifest hash: 1508afddd2402142f9d8b2387652d4cb28ccc1f5 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCwRGPywK+sNU5EO8RApBOAJ9Fj22MP3pYJhxWsj8BYbcgWzIOKwCff9yC lX87RrDKicM1W61lBpQl20w= =efck -----END PGP SIGNATURE-----
author mpm@selenic.com
date Tue, 28 Jun 2005 00:59:59 -0800
parents 6ce95a04999d
children 98a2935c3d6c
line wrap: on
line source

+ hg -q help
hg commands:

 add         add the specified files on the next commit
 addremove   add all new files, delete all missing files
 annotate    show changeset information per file line
 cat         output the latest or given revision of a file
 clone       make a copy of an existing repository
 commit      commit the specified files or all outstanding changes
 copy        mark a file as copied or renamed for the next commit
 diff        diff working directory (or selected files)
 export      dump the changeset header and diffs for a revision
 forget      don't add the specified files on the next commit
 heads       show current repository heads
 help        show help for a given command or all commands
 history     show the changelog history
 identify    print information about the working copy
 import      import an ordered set of patches
 init        create a new repository in the current directory
 log         show the revision history of a single file
 manifest    output the latest or given revision of the project manifest
 parents     show the parents of the current working dir
 pull        pull changes from the specified source
 push        push changes to the specified destination
 rawcommit   raw commit interface
 recover     roll back an interrupted transaction
 remove      remove the specified files on the next commit
 root        print the root (top) of the current working dir
 serve       export the repository via HTTP
 status      show changed files in the working directory
 tag         add a tag for the current tip or a given revision
 tags        list repository tags
 tip         show the tip revision
 undo        undo the last transaction
 update      update or merge working directory
 verify      verify the integrity of the repository
 version     output version and copyright information
+ hg add -h
hg add: option -h not recognized
hg add [files]

add the specified files on the next commit
+ hg help diff
hg diff [-r A] [-r B] [files]

 -r --rev 
   revision

diff working directory (or selected files)
+ hg help foo
hg: unknown command foo
+ hg -q commands
hg: unknown command 'commands'
hg commands:

 add         add the specified files on the next commit
 addremove   add all new files, delete all missing files
 annotate    show changeset information per file line
 cat         output the latest or given revision of a file
 clone       make a copy of an existing repository
 commit      commit the specified files or all outstanding changes
 copy        mark a file as copied or renamed for the next commit
 diff        diff working directory (or selected files)
 export      dump the changeset header and diffs for a revision
 forget      don't add the specified files on the next commit
 heads       show current repository heads
 help        show help for a given command or all commands
 history     show the changelog history
 identify    print information about the working copy
 import      import an ordered set of patches
 init        create a new repository in the current directory
 log         show the revision history of a single file
 manifest    output the latest or given revision of the project manifest
 parents     show the parents of the current working dir
 pull        pull changes from the specified source
 push        push changes to the specified destination
 rawcommit   raw commit interface
 recover     roll back an interrupted transaction
 remove      remove the specified files on the next commit
 root        print the root (top) of the current working dir
 serve       export the repository via HTTP
 status      show changed files in the working directory
 tag         add a tag for the current tip or a given revision
 tags        list repository tags
 tip         show the tip revision
 undo        undo the last transaction
 update      update or merge working directory
 verify      verify the integrity of the repository
 version     output version and copyright information
+ exit 0