tests/test-help.t
changeset 39339 d30867a745a1
parent 39338 fb9ee1ba5e42
child 39341 ca2f4dabf51d
equal deleted inserted replaced
39338:fb9ee1ba5e42 39339:d30867a745a1
  1342   
  1342   
  1343 
  1343 
  1344 Test section name with dot
  1344 Test section name with dot
  1345 
  1345 
  1346   $ hg help config.ui.username
  1346   $ hg help config.ui.username
  1347       "auth.username"
  1347   abort: help section not found: config.ui.username
  1348           Optional. Username to authenticate with. If not given, and the remote
  1348   [255]
  1349           site requires basic or digest authentication, the user will be
       
  1350           prompted for it. Environment variables are expanded in the username
       
  1351           letting you do "foo.username = $USER". If the URI includes a username,
       
  1352           only "[auth]" entries with a matching username or without a username
       
  1353           will be considered.
       
  1354   
       
  1355       "smtp.username"
       
  1356           Optional. User name for authenticating with the SMTP server. (default:
       
  1357           None)
       
  1358   
       
  1359       "ui.username"
       
  1360           The committer of a changeset created when running "commit". Typically
       
  1361           a person's name and email address, e.g. "Fred Widget
       
  1362           <fred@example.com>". Environment variables in the username are
       
  1363           expanded.
       
  1364   
       
  1365           (default: "$EMAIL" or "username@hostname". If the username in hgrc is
       
  1366           empty, e.g. if the system admin set "username =" in the system hgrc,
       
  1367           it has to be specified manually or in a different hgrc file)
       
  1368   
       
  1369 
  1349 
  1370   $ hg help config.annotate.git
  1350   $ hg help config.annotate.git
  1371       "diff.git"
  1351   abort: help section not found: config.annotate.git
  1372           Use git extended diff format.
  1352   [255]
  1373   
       
  1374 
  1353 
  1375   $ hg help config.update.check
  1354   $ hg help config.update.check
  1376       "merge-tools.check"
       
  1377         A list of merge success-checking options:
       
  1378   
       
  1379         "changed"
       
  1380           Ask whether merge was successful when the merged file shows no
       
  1381           changes.
       
  1382   
       
  1383         "conflicts"
       
  1384           Check whether there are conflicts even though the tool reported
       
  1385           success.
       
  1386   
       
  1387         "prompt"
       
  1388           Always prompt for merge success, regardless of success reported by
       
  1389           tool.
       
  1390   
       
  1391 
       
  1392   $ hg help config.commands.update.check
       
  1393       "commands.update.check"
  1355       "commands.update.check"
  1394           Determines what level of checking 'hg update' will perform before
  1356           Determines what level of checking 'hg update' will perform before
  1395           moving to a destination revision. Valid values are "abort", "none",
  1357           moving to a destination revision. Valid values are "abort", "none",
  1396           "linear", and "noconflict". "abort" always fails if the working
  1358           "linear", and "noconflict". "abort" always fails if the working
  1397           directory has uncommitted changes. "none" performs no checking, and
  1359           directory has uncommitted changes. "none" performs no checking, and
  1399           update as long as it follows a straight line in the revision history,
  1361           update as long as it follows a straight line in the revision history,
  1400           and may trigger a merge with uncommitted changes. "noconflict" will
  1362           and may trigger a merge with uncommitted changes. "noconflict" will
  1401           allow any update which would not trigger a merge with uncommitted
  1363           allow any update which would not trigger a merge with uncommitted
  1402           changes, if any are present. (default: "linear")
  1364           changes, if any are present. (default: "linear")
  1403   
  1365   
       
  1366 
       
  1367   $ hg help config.commands.update.check
       
  1368   abort: help section not found: config.commands.update.check
       
  1369   [255]
  1404 
  1370 
  1405 Unrelated trailing paragraphs shouldn't be included
  1371 Unrelated trailing paragraphs shouldn't be included
  1406 
  1372 
  1407   $ hg help config.extramsg | grep '^$'
  1373   $ hg help config.extramsg | grep '^$'
  1408   
  1374