tests/test-help.out
author mpm@selenic.com
Wed, 15 Jun 2005 21:11:40 -0800
changeset 373 67081329d49a
parent 364 6f43778f26da
child 401 af4848f83e68
child 423 25afb21d97ba
permissions -rw-r--r--
Change the size of the short hash representation -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Change the size of the short hash representation First note that this number doesn't really matter, as we always check for ambiguous short hash ids. Here's the math on collision probability: >>> import math >>> def p(f, n): return 1 - (1 / math.exp(n**2/(2*f))) ... >>> p(2**32, 30000.0) 0.09947179164613551 # with 30000 changesets (BKCVS), we have a 9% chance >>> p(2**32, 65000.0) 0.38850881217977273 # and with a full import from BK, we'd have a 39% chance >>> p(2**40, 1e6) 0.36539171908447321 # we'd like to be "safe" for 1M csets, so 40 isn't enough >>> p(2**48, 1e6) 0.001774780051374103 # But 48 looks good >>> p(2**48, 1e7) 0.16275260939624481 >>> p(2**48, 5e6) 0.043437281083569146 >>> p(2**48, 2e6) 0.0070802434913129764 >>> p(2**48, 3e6) 0.01586009440574343 manifest hash: 24d9f928a463f46708b0e11fb781d5a241851424 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCsQoMywK+sNU5EO8RAoBBAJwII9GV6dT9QUOYAk3gZGw9z0JvjACfSI4q IFnTu1F7P5OuLelO1GsM8Bs= =CNWk -----END PGP SIGNATURE-----
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
331
55f63f3b6a54 Add a simple testing framework
mpm@selenic.com
parents:
diff changeset
     1
+ hg help
55f63f3b6a54 Add a simple testing framework
mpm@selenic.com
parents:
diff changeset
     2
hg commands:
55f63f3b6a54 Add a simple testing framework
mpm@selenic.com
parents:
diff changeset
     3
55f63f3b6a54 Add a simple testing framework
mpm@selenic.com
parents:
diff changeset
     4
 add         add the specified files on the next commit
55f63f3b6a54 Add a simple testing framework
mpm@selenic.com
parents:
diff changeset
     5
 addremove   add all new files, delete all missing files
55f63f3b6a54 Add a simple testing framework
mpm@selenic.com
parents:
diff changeset
     6
 annotate    show changeset information per file line
55f63f3b6a54 Add a simple testing framework
mpm@selenic.com
parents:
diff changeset
     7
 cat         output the latest or given revision of a file
55f63f3b6a54 Add a simple testing framework
mpm@selenic.com
parents:
diff changeset
     8
 commit      commit the specified files or all outstanding changes
364
6f43778f26da test-help: hg copy now shows up in the help
mpm@selenic.com
parents: 350
diff changeset
     9
 copy        mark a file as copied or renamed for the next commit
331
55f63f3b6a54 Add a simple testing framework
mpm@selenic.com
parents:
diff changeset
    10
 diff        diff working directory (or selected files)
55f63f3b6a54 Add a simple testing framework
mpm@selenic.com
parents:
diff changeset
    11
 export      dump the changeset header and diffs for a revision
55f63f3b6a54 Add a simple testing framework
mpm@selenic.com
parents:
diff changeset
    12
 forget      don't add the specified files on the next commit
55f63f3b6a54 Add a simple testing framework
mpm@selenic.com
parents:
diff changeset
    13
 heads       show current repository heads
55f63f3b6a54 Add a simple testing framework
mpm@selenic.com
parents:
diff changeset
    14
 help        show help for a given command or all commands
55f63f3b6a54 Add a simple testing framework
mpm@selenic.com
parents:
diff changeset
    15
 history     show the changelog history
342
f7c51058cbb7 update help test for identify
mpm@selenic.com
parents: 336
diff changeset
    16
 identify    print information about the working copy
331
55f63f3b6a54 Add a simple testing framework
mpm@selenic.com
parents:
diff changeset
    17
 init        create a new repository or copy an existing one
55f63f3b6a54 Add a simple testing framework
mpm@selenic.com
parents:
diff changeset
    18
 log         show the revision history of a single file
55f63f3b6a54 Add a simple testing framework
mpm@selenic.com
parents:
diff changeset
    19
 manifest    output the latest or given revision of the project manifest
55f63f3b6a54 Add a simple testing framework
mpm@selenic.com
parents:
diff changeset
    20
 parents     show the parents of the current working dir
55f63f3b6a54 Add a simple testing framework
mpm@selenic.com
parents:
diff changeset
    21
 patch       import an ordered set of patches
55f63f3b6a54 Add a simple testing framework
mpm@selenic.com
parents:
diff changeset
    22
 pull        pull changes from the specified source
55f63f3b6a54 Add a simple testing framework
mpm@selenic.com
parents:
diff changeset
    23
 push        push changes to the specified destination
55f63f3b6a54 Add a simple testing framework
mpm@selenic.com
parents:
diff changeset
    24
 rawcommit   raw commit interface
55f63f3b6a54 Add a simple testing framework
mpm@selenic.com
parents:
diff changeset
    25
 recover     roll back an interrupted transaction
55f63f3b6a54 Add a simple testing framework
mpm@selenic.com
parents:
diff changeset
    26
 remove      remove the specified files on the next commit
55f63f3b6a54 Add a simple testing framework
mpm@selenic.com
parents:
diff changeset
    27
 serve       export the repository via HTTP
55f63f3b6a54 Add a simple testing framework
mpm@selenic.com
parents:
diff changeset
    28
 status      show changed files in the working directory
55f63f3b6a54 Add a simple testing framework
mpm@selenic.com
parents:
diff changeset
    29
 tags        list repository tags
55f63f3b6a54 Add a simple testing framework
mpm@selenic.com
parents:
diff changeset
    30
 tip         show the tip revision
55f63f3b6a54 Add a simple testing framework
mpm@selenic.com
parents:
diff changeset
    31
 undo        undo the last transaction
55f63f3b6a54 Add a simple testing framework
mpm@selenic.com
parents:
diff changeset
    32
 update      update or merge working directory
55f63f3b6a54 Add a simple testing framework
mpm@selenic.com
parents:
diff changeset
    33
 verify      verify the integrity of the repository
55f63f3b6a54 Add a simple testing framework
mpm@selenic.com
parents:
diff changeset
    34
+ hg add -h
55f63f3b6a54 Add a simple testing framework
mpm@selenic.com
parents:
diff changeset
    35
hg add: option -h not recognized
55f63f3b6a54 Add a simple testing framework
mpm@selenic.com
parents:
diff changeset
    36
hg add [files]
55f63f3b6a54 Add a simple testing framework
mpm@selenic.com
parents:
diff changeset
    37
55f63f3b6a54 Add a simple testing framework
mpm@selenic.com
parents:
diff changeset
    38
add the specified files on the next commit
55f63f3b6a54 Add a simple testing framework
mpm@selenic.com
parents:
diff changeset
    39
+ hg help diff
55f63f3b6a54 Add a simple testing framework
mpm@selenic.com
parents:
diff changeset
    40
hg diff [-r A] [-r B] [files]
55f63f3b6a54 Add a simple testing framework
mpm@selenic.com
parents:
diff changeset
    41
55f63f3b6a54 Add a simple testing framework
mpm@selenic.com
parents:
diff changeset
    42
 -r --rev 
55f63f3b6a54 Add a simple testing framework
mpm@selenic.com
parents:
diff changeset
    43
   revision
55f63f3b6a54 Add a simple testing framework
mpm@selenic.com
parents:
diff changeset
    44
55f63f3b6a54 Add a simple testing framework
mpm@selenic.com
parents:
diff changeset
    45
diff working directory (or selected files)
55f63f3b6a54 Add a simple testing framework
mpm@selenic.com
parents:
diff changeset
    46
+ hg help foo
55f63f3b6a54 Add a simple testing framework
mpm@selenic.com
parents:
diff changeset
    47
hg: unknown command foo
336
aa6cbde09f72 Add some more tests
mpm@selenic.com
parents: 331
diff changeset
    48
+ hg commands
aa6cbde09f72 Add some more tests
mpm@selenic.com
parents: 331
diff changeset
    49
hg: unknown command 'commands'
aa6cbde09f72 Add some more tests
mpm@selenic.com
parents: 331
diff changeset
    50
hg commands:
aa6cbde09f72 Add some more tests
mpm@selenic.com
parents: 331
diff changeset
    51
aa6cbde09f72 Add some more tests
mpm@selenic.com
parents: 331
diff changeset
    52
 add         add the specified files on the next commit
aa6cbde09f72 Add some more tests
mpm@selenic.com
parents: 331
diff changeset
    53
 addremove   add all new files, delete all missing files
aa6cbde09f72 Add some more tests
mpm@selenic.com
parents: 331
diff changeset
    54
 annotate    show changeset information per file line
aa6cbde09f72 Add some more tests
mpm@selenic.com
parents: 331
diff changeset
    55
 cat         output the latest or given revision of a file
aa6cbde09f72 Add some more tests
mpm@selenic.com
parents: 331
diff changeset
    56
 commit      commit the specified files or all outstanding changes
364
6f43778f26da test-help: hg copy now shows up in the help
mpm@selenic.com
parents: 350
diff changeset
    57
 copy        mark a file as copied or renamed for the next commit
336
aa6cbde09f72 Add some more tests
mpm@selenic.com
parents: 331
diff changeset
    58
 diff        diff working directory (or selected files)
aa6cbde09f72 Add some more tests
mpm@selenic.com
parents: 331
diff changeset
    59
 export      dump the changeset header and diffs for a revision
aa6cbde09f72 Add some more tests
mpm@selenic.com
parents: 331
diff changeset
    60
 forget      don't add the specified files on the next commit
aa6cbde09f72 Add some more tests
mpm@selenic.com
parents: 331
diff changeset
    61
 heads       show current repository heads
aa6cbde09f72 Add some more tests
mpm@selenic.com
parents: 331
diff changeset
    62
 help        show help for a given command or all commands
aa6cbde09f72 Add some more tests
mpm@selenic.com
parents: 331
diff changeset
    63
 history     show the changelog history
342
f7c51058cbb7 update help test for identify
mpm@selenic.com
parents: 336
diff changeset
    64
 identify    print information about the working copy
336
aa6cbde09f72 Add some more tests
mpm@selenic.com
parents: 331
diff changeset
    65
 init        create a new repository or copy an existing one
aa6cbde09f72 Add some more tests
mpm@selenic.com
parents: 331
diff changeset
    66
 log         show the revision history of a single file
aa6cbde09f72 Add some more tests
mpm@selenic.com
parents: 331
diff changeset
    67
 manifest    output the latest or given revision of the project manifest
aa6cbde09f72 Add some more tests
mpm@selenic.com
parents: 331
diff changeset
    68
 parents     show the parents of the current working dir
aa6cbde09f72 Add some more tests
mpm@selenic.com
parents: 331
diff changeset
    69
 patch       import an ordered set of patches
aa6cbde09f72 Add some more tests
mpm@selenic.com
parents: 331
diff changeset
    70
 pull        pull changes from the specified source
aa6cbde09f72 Add some more tests
mpm@selenic.com
parents: 331
diff changeset
    71
 push        push changes to the specified destination
aa6cbde09f72 Add some more tests
mpm@selenic.com
parents: 331
diff changeset
    72
 rawcommit   raw commit interface
aa6cbde09f72 Add some more tests
mpm@selenic.com
parents: 331
diff changeset
    73
 recover     roll back an interrupted transaction
aa6cbde09f72 Add some more tests
mpm@selenic.com
parents: 331
diff changeset
    74
 remove      remove the specified files on the next commit
aa6cbde09f72 Add some more tests
mpm@selenic.com
parents: 331
diff changeset
    75
 serve       export the repository via HTTP
aa6cbde09f72 Add some more tests
mpm@selenic.com
parents: 331
diff changeset
    76
 status      show changed files in the working directory
aa6cbde09f72 Add some more tests
mpm@selenic.com
parents: 331
diff changeset
    77
 tags        list repository tags
aa6cbde09f72 Add some more tests
mpm@selenic.com
parents: 331
diff changeset
    78
 tip         show the tip revision
aa6cbde09f72 Add some more tests
mpm@selenic.com
parents: 331
diff changeset
    79
 undo        undo the last transaction
aa6cbde09f72 Add some more tests
mpm@selenic.com
parents: 331
diff changeset
    80
 update      update or merge working directory
aa6cbde09f72 Add some more tests
mpm@selenic.com
parents: 331
diff changeset
    81
 verify      verify the integrity of the repository
aa6cbde09f72 Add some more tests
mpm@selenic.com
parents: 331
diff changeset
    82
+ exit 0