comparison mercurial/commands.py @ 8032:4726a522a182

commands: use double quotes consistently in help texts
author Martin Geisler <mg@lazybytes.net>
date Wed, 08 Apr 2009 20:51:09 +0200
parents 813a02a4eda2
children aeb4a5c7a28e
comparison
equal deleted inserted replaced
8031:813a02a4eda2 8032:4726a522a182
134 134
135 def archive(ui, repo, dest, **opts): 135 def archive(ui, repo, dest, **opts):
136 '''create unversioned archive of a repository revision 136 '''create unversioned archive of a repository revision
137 137
138 By default, the revision used is the parent of the working 138 By default, the revision used is the parent of the working
139 directory; use "-r" to specify a different revision. 139 directory; use -r to specify a different revision.
140 140
141 To specify the type of archive to create, use "-t". Valid types 141 To specify the type of archive to create, use -t. Valid types are:
142 are:
143 142
144 "files" (default): a directory full of files 143 "files" (default): a directory full of files
145 "tar": tar archive, uncompressed 144 "tar": tar archive, uncompressed
146 "tbz2": tar archive, compressed using bzip2 145 "tbz2": tar archive, compressed using bzip2
147 "tgz": tar archive, compressed using gzip 146 "tgz": tar archive, compressed using gzip
150 149
151 The exact name of the destination archive or directory is given 150 The exact name of the destination archive or directory is given
152 using a format string; see 'hg help export' for details. 151 using a format string; see 'hg help export' for details.
153 152
154 Each member added to an archive file has a directory prefix 153 Each member added to an archive file has a directory prefix
155 prepended. Use "-p" to specify a format string for the prefix. The 154 prepended. Use -p to specify a format string for the prefix. The
156 default is the basename of the archive, with suffixes removed. 155 default is the basename of the archive, with suffixes removed.
157 ''' 156 '''
158 157
159 ctx = repo[opts.get('rev')] 158 ctx = repo[opts.get('rev')]
160 if not ctx: 159 if not ctx:
1828 1827
1829 If no patterns are given to match, this command prints all file 1828 If no patterns are given to match, this command prints all file
1830 names. 1829 names.
1831 1830
1832 If you want to feed the output of this command into the "xargs" 1831 If you want to feed the output of this command into the "xargs"
1833 command, use the "-0" option to both this command and "xargs". 1832 command, use the -0 option to both this command and "xargs". This
1834 This will avoid the problem of "xargs" treating single filenames 1833 will avoid the problem of "xargs" treating single filenames that
1835 that contain white space as multiple filenames. 1834 contain white space as multiple filenames.
1836 """ 1835 """
1837 end = opts.get('print0') and '\0' or '\n' 1836 end = opts.get('print0') and '\0' or '\n'
1838 rev = opts.get('rev') or None 1837 rev = opts.get('rev') or None
1839 1838
1840 ret = 1 1839 ret = 1
2654 """export the repository via HTTP 2653 """export the repository via HTTP
2655 2654
2656 Start a local HTTP repository browser and pull server. 2655 Start a local HTTP repository browser and pull server.
2657 2656
2658 By default, the server logs accesses to stdout and errors to 2657 By default, the server logs accesses to stdout and errors to
2659 stderr. Use the "-A" and "-E" options to log to files. 2658 stderr. Use the -A and -E options to log to files.
2660 """ 2659 """
2661 2660
2662 if opts["stdio"]: 2661 if opts["stdio"]:
2663 if repo is None: 2662 if repo is None:
2664 raise error.RepoError(_("There is no Mercurial repository here" 2663 raise error.RepoError(_("There is no Mercurial repository here"