changeset 8026:683d8ebcf434

expand "dir" to "directory" in help texts
author Martin Geisler <mg@lazybytes.net>
date Tue, 07 Apr 2009 22:47:56 +0200
parents 1280934dd2dd
children 9c7ca86fc658
files hgext/children.py hgext/convert/__init__.py hgext/convert/monotone.py hgext/extdiff.py hgext/mq.py mercurial/commands.py tests/test-convert.out tests/test-globalopts.out tests/test-help.out tests/test-qrecord.out tests/test-strict.out
diffstat 11 files changed, 37 insertions(+), 35 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/children.py	Wed Apr 08 19:32:16 2009 +0200
+++ b/hgext/children.py	Tue Apr 07 22:47:56 2009 +0200
@@ -13,7 +13,7 @@
 
 
 def children(ui, repo, file_=None, **opts):
-    """show the children of the given or working dir revision
+    """show the children of the given or working directory revision
 
     Print the children of the working directory's revisions. If a
     revision is given via --rev, the children of that revision will be
--- a/hgext/convert/__init__.py	Wed Apr 08 19:32:16 2009 +0200
+++ b/hgext/convert/__init__.py	Tue Apr 07 22:47:56 2009 +0200
@@ -68,7 +68,7 @@
 
     The 'include' directive causes a file, or all files under a
     directory, to be included in the destination repository, and the
-    exclusion of all other files and dirs not explicitely included.
+    exclusion of all other files and directories not explicitely included.
     The 'exclude' directive causes files or directories to be omitted.
     The 'rename' directive renames a file or directory. To rename from
     a subdirectory into the root of the repository, use '.' as the
--- a/hgext/convert/monotone.py	Wed Apr 08 19:32:16 2009 +0200
+++ b/hgext/convert/monotone.py	Tue Apr 07 22:47:56 2009 +0200
@@ -154,7 +154,9 @@
                 if self.mtnisdir(toname, rev):
                     renamed = self.mtnrenamefiles(self.files, fromname, toname)
                     for tofile, fromfile in renamed.items():
-                        self.ui.debug (_("copying file in renamed dir from '%s' to '%s'") % (fromfile, tofile), '\n')
+                        self.ui.debug (_("copying file in renamed directory "
+                                         "from '%s' to '%s'")
+                                       % (fromfile, tofile), '\n')
                         files[tofile] = rev
                     for fromfile in renamed.values():
                         files[fromfile] = rev
--- a/hgext/extdiff.py	Wed Apr 08 19:32:16 2009 +0200
+++ b/hgext/extdiff.py	Tue Apr 07 22:47:56 2009 +0200
@@ -7,7 +7,7 @@
 
 '''
 The `extdiff' Mercurial extension allows you to use external programs
-to compare revisions, or revision with working dir. The external diff
+to compare revisions, or revision with working directory. The external diff
 programs are called with a configurable set of options and two
 non-option arguments: paths to directories containing snapshots of
 files to compare.
@@ -85,7 +85,7 @@
         dirname = "root"
     base = os.path.join(tmproot, dirname)
     os.mkdir(base)
-    ui.note(_('making snapshot of %d files from working dir\n') %
+    ui.note(_('making snapshot of %d files from working directory\n') %
             (len(files)))
 
     fns_and_mtime = []
--- a/hgext/mq.py	Wed Apr 08 19:32:16 2009 +0200
+++ b/hgext/mq.py	Tue Apr 07 22:47:56 2009 +0200
@@ -2218,7 +2218,7 @@
 def strip(ui, repo, rev, **opts):
     """strip a revision and all its descendants from the repository
 
-    If one of the working dir's parent revisions is stripped, the
+    If one of the working directory's parent revisions is stripped, the
     working directory will be updated to the parent of the stripped
     revision.
     """
@@ -2514,7 +2514,7 @@
     'qheader': (header, [], _('hg qheader [PATCH]')),
     "^qimport":
         (qimport,
-         [('e', 'existing', None, _('import file in patch dir')),
+         [('e', 'existing', None, _('import file in patch directory')),
           ('n', 'name', '', _('patch file name')),
           ('f', 'force', None, _('overwrite existing files')),
           ('r', 'rev', [], _('place existing revisions under mq control')),
@@ -2567,7 +2567,7 @@
     "qrestore":
         (restore,
          [('d', 'delete', None, _('delete save entry')),
-          ('u', 'update', None, _('update queue working dir'))],
+          ('u', 'update', None, _('update queue working directory'))],
          _('hg qrestore [-d] [-u] REV')),
     "qsave":
         (save,
--- a/mercurial/commands.py	Wed Apr 08 19:32:16 2009 +0200
+++ b/mercurial/commands.py	Tue Apr 07 22:47:56 2009 +0200
@@ -2088,7 +2088,7 @@
         displayer.show(repo[n])
 
 def parents(ui, repo, file_=None, **opts):
-    """show the parents of the working dir or revision
+    """show the parents of the working directory or revision
 
     Print the working directory's parent revisions. If a revision is
     given via --rev, the parent of that revision will be printed. If a
@@ -2399,10 +2399,10 @@
                 util.rename(a + ".resolve", a + ".orig")
 
 def revert(ui, repo, *pats, **opts):
-    """restore individual files or dirs to an earlier state
+    """restore individual files or directories to an earlier state
 
     (use update -r to check out earlier revisions, revert does not
-    change the working dir parents)
+    change the working directory parents)
 
     With no revision specified, revert the named files or directories
     to the contents they had in the parent of the working directory.
@@ -2644,7 +2644,7 @@
     repo.rollback()
 
 def root(ui, repo):
-    """print the root (top) of the current working dir
+    """print the root (top) of the current working directory
 
     Print the root directory of the current repository.
     """
@@ -2924,13 +2924,13 @@
     Use null as the revision to remove the working copy (like 'hg
     clone -U').
 
-    When the working dir contains no uncommitted changes, it will be
+    When the working directory contains no uncommitted changes, it will be
     replaced by the state of the requested revision from the repo.
     When the requested revision is on a different branch, the working
-    dir will additionally be switched to that branch.
+    directory will additionally be switched to that branch.
 
     When there are uncommitted changes, use option -C to discard them,
-    forcibly replacing the state of the working dir with the requested
+    forcibly replacing the state of the working directory with the requested
     revision.
 
     When there are uncommitted changes and option -C is not used, and
@@ -3385,7 +3385,7 @@
           ('a', 'address', '', _('address to listen on (default: all interfaces)')),
           ('', 'prefix', '', _('prefix path to serve from (default: server root)')),
           ('n', 'name', '',
-           _('name to show in web pages (default: working dir)')),
+           _('name to show in web pages (default: working directory)')),
           ('', 'webdir-conf', '', _('name of the webdir config file'
                                     ' (serve more than one repo)')),
           ('', 'pid-file', '', _('name of file to write process ID to')),
--- a/tests/test-convert.out	Wed Apr 08 19:32:16 2009 +0200
+++ b/tests/test-convert.out	Tue Apr 07 22:47:56 2009 +0200
@@ -53,7 +53,7 @@
 
     The 'include' directive causes a file, or all files under a
     directory, to be included in the destination repository, and the
-    exclusion of all other files and dirs not explicitely included.
+    exclusion of all other files and directories not explicitely included.
     The 'exclude' directive causes files or directories to be omitted.
     The 'rename' directive renames a file or directory. To rename from
     a subdirectory into the root of the repository, use '.' as the
--- a/tests/test-globalopts.out	Wed Apr 08 19:32:16 2009 +0200
+++ b/tests/test-globalopts.out	Tue Apr 07 22:47:56 2009 +0200
@@ -176,7 +176,7 @@
  manifest     output the current or given revision of the project manifest
  merge        merge working directory with another revision
  outgoing     show changesets not found in destination
- parents      show the parents of the working dir or revision
+ parents      show the parents of the working directory or revision
  paths        show aliases for remote repositories
  pull         pull changes from the specified source
  push         push changes to the specified destination
@@ -184,9 +184,9 @@
  remove       remove the specified files on the next commit
  rename       rename files; equivalent of copy + remove
  resolve      retry file merges from a merge or update
- revert       restore individual files or dirs to an earlier state
+ revert       restore individual files or directories to an earlier state
  rollback     roll back the last transaction
- root         print the root (top) of the current working dir
+ root         print the root (top) of the current working directory
  serve        export the repository via HTTP
  showconfig   show combined config settings from all hgrc files
  status       show changed files in the working directory
@@ -241,7 +241,7 @@
  manifest     output the current or given revision of the project manifest
  merge        merge working directory with another revision
  outgoing     show changesets not found in destination
- parents      show the parents of the working dir or revision
+ parents      show the parents of the working directory or revision
  paths        show aliases for remote repositories
  pull         pull changes from the specified source
  push         push changes to the specified destination
@@ -249,9 +249,9 @@
  remove       remove the specified files on the next commit
  rename       rename files; equivalent of copy + remove
  resolve      retry file merges from a merge or update
- revert       restore individual files or dirs to an earlier state
+ revert       restore individual files or directories to an earlier state
  rollback     roll back the last transaction
- root         print the root (top) of the current working dir
+ root         print the root (top) of the current working directory
  serve        export the repository via HTTP
  showconfig   show combined config settings from all hgrc files
  status       show changed files in the working directory
--- a/tests/test-help.out	Wed Apr 08 19:32:16 2009 +0200
+++ b/tests/test-help.out	Tue Apr 07 22:47:56 2009 +0200
@@ -11,7 +11,7 @@
  init       create a new repository in the given directory
  log        show revision history of entire repository or files
  merge      merge working directory with another revision
- parents    show the parents of the working dir or revision
+ parents    show the parents of the working directory or revision
  pull       pull changes from the specified source
  push       push changes to the specified destination
  remove     remove the specified files on the next commit
@@ -29,7 +29,7 @@
  init       create a new repository in the given directory
  log        show revision history of entire repository or files
  merge      merge working directory with another revision
- parents    show the parents of the working dir or revision
+ parents    show the parents of the working directory or revision
  pull       pull changes from the specified source
  push       push changes to the specified destination
  remove     remove the specified files on the next commit
@@ -67,7 +67,7 @@
  manifest     output the current or given revision of the project manifest
  merge        merge working directory with another revision
  outgoing     show changesets not found in destination
- parents      show the parents of the working dir or revision
+ parents      show the parents of the working directory or revision
  paths        show aliases for remote repositories
  pull         pull changes from the specified source
  push         push changes to the specified destination
@@ -75,9 +75,9 @@
  remove       remove the specified files on the next commit
  rename       rename files; equivalent of copy + remove
  resolve      retry file merges from a merge or update
- revert       restore individual files or dirs to an earlier state
+ revert       restore individual files or directories to an earlier state
  rollback     roll back the last transaction
- root         print the root (top) of the current working dir
+ root         print the root (top) of the current working directory
  serve        export the repository via HTTP
  showconfig   show combined config settings from all hgrc files
  status       show changed files in the working directory
@@ -128,7 +128,7 @@
  manifest     output the current or given revision of the project manifest
  merge        merge working directory with another revision
  outgoing     show changesets not found in destination
- parents      show the parents of the working dir or revision
+ parents      show the parents of the working directory or revision
  paths        show aliases for remote repositories
  pull         pull changes from the specified source
  push         push changes to the specified destination
@@ -136,9 +136,9 @@
  remove       remove the specified files on the next commit
  rename       rename files; equivalent of copy + remove
  resolve      retry file merges from a merge or update
- revert       restore individual files or dirs to an earlier state
+ revert       restore individual files or directories to an earlier state
  rollback     roll back the last transaction
- root         print the root (top) of the current working dir
+ root         print the root (top) of the current working directory
  serve        export the repository via HTTP
  showconfig   show combined config settings from all hgrc files
  status       show changed files in the working directory
@@ -308,7 +308,7 @@
  init       create a new repository in the given directory
  log        show revision history of entire repository or files
  merge      merge working directory with another revision
- parents    show the parents of the working dir or revision
+ parents    show the parents of the working directory or revision
  pull       pull changes from the specified source
  push       push changes to the specified destination
  remove     remove the specified files on the next commit
@@ -331,7 +331,7 @@
  init       create a new repository in the given directory
  log        show revision history of entire repository or files
  merge      merge working directory with another revision
- parents    show the parents of the working dir or revision
+ parents    show the parents of the working directory or revision
  pull       pull changes from the specified source
  push       push changes to the specified destination
  remove     remove the specified files on the next commit
--- a/tests/test-qrecord.out	Wed Apr 08 19:32:16 2009 +0200
+++ b/tests/test-qrecord.out	Tue Apr 07 22:47:56 2009 +0200
@@ -13,7 +13,7 @@
  init       create a new repository in the given directory
  log        show revision history of entire repository or files
  merge      merge working directory with another revision
- parents    show the parents of the working dir or revision
+ parents    show the parents of the working directory or revision
  pull       pull changes from the specified source
  push       push changes to the specified destination
  remove     remove the specified files on the next commit
--- a/tests/test-strict.out	Wed Apr 08 19:32:16 2009 +0200
+++ b/tests/test-strict.out	Tue Apr 07 22:47:56 2009 +0200
@@ -14,7 +14,7 @@
  init       create a new repository in the given directory
  log        show revision history of entire repository or files
  merge      merge working directory with another revision
- parents    show the parents of the working dir or revision
+ parents    show the parents of the working directory or revision
  pull       pull changes from the specified source
  push       push changes to the specified destination
  remove     remove the specified files on the next commit