浏览代码

fix phrasings in "in place" refactoring

Antoine Beaupré 9 年之前
父节点
当前提交
319fcbacc5
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 2 2
      borg/archiver.py
  2. 2 2
      borg/testsuite/upgrader.py

+ 2 - 2
borg/archiver.py

@@ -925,7 +925,7 @@ Type "Yes I am sure" if you understand this and want to continue.\n""")
         backup copy.
 
         WARNING: running the upgrade in place will make the current
-        copy unuseable with older version, with no way of going back
+        copy unusable with older version, with no way of going back
         to previous versions. this can PERMANENTLY DAMAGE YOUR
         REPOSITORY!  Attic CAN NOT READ BORG REPOSITORIES, as the
         magic strings have changed. you have been warned.""")
@@ -939,7 +939,7 @@ Type "Yes I am sure" if you understand this and want to continue.\n""")
                                help='do not change repository')
         subparser.add_argument('-i', '--inplace', dest='inplace',
                                default=False, action='store_true',
-                               help="""rewrite repository in-place, with no chance of going back to older
+                               help="""rewrite repository in place, with no chance of going back to older
                                versions of the repository.""")
         subparser.add_argument('repository', metavar='REPOSITORY', nargs='?', default='',
                                type=location_validator(archive=False),

+ 2 - 2
borg/testsuite/upgrader.py

@@ -185,8 +185,8 @@ def test_hardlink(tmpdir, inplace):
     """test that we handle hard links properly
 
     that is, if we are in "inplace" mode, hardlinks should *not*
-    change (ie. we write the file directly, so not the whole file, and
-    not re-create the file).
+    change (ie. we write to the file directly, so we do not rewrite the
+    whole file, and we do not re-create the file).
 
     if we are *not* in inplace mode, then the inode should change, as
     we are supposed to leave the original inode alone."""