]> arthur.barton.de Git - bup.git/commitdiff
metadata: mention that from_path is also used as a test hook
authorRob Browning <rlb@defaultvalue.org>
Fri, 30 Apr 2021 19:42:36 +0000 (14:42 -0500)
committerRob Browning <rlb@defaultvalue.org>
Sat, 15 May 2021 18:57:24 +0000 (13:57 -0500)
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/metadata.py

index d799cc4b645ad94db474846c3adedc5beab0d44e..0d577806abda2ff4256688d227a6f62b3a2f6eda 100644 (file)
@@ -885,6 +885,7 @@ class Metadata:
 def from_path(path, statinfo=None, archive_path=None,
               save_symlinks=True, hardlink_target=None,
               normalized=False):
+    # This function is also a test hook; see test-save-errors
     """Return the metadata associated with the path.  When normalized is
     true, return the metadata appropriate for a typical save, which
     may or may not be all of it."""