# HG changeset patch
# User Sean Farley <sean.michael.farley@gmail.com>
# Date 1423445541 28800
# Node ID 62fc5850eb2802d84ccda5b05436828c9148888a
# Parent  91eb0ad1376a988b18302266577e9e678cffbf6f
svncommads: document the auto layout block

diff --git a/hgsubversion/svncommands.py b/hgsubversion/svncommands.py
--- a/hgsubversion/svncommands.py
+++ b/hgsubversion/svncommands.py
@@ -184,8 +184,13 @@ def _buildmeta(ui, repo, args, partial=F
         assert revpath.startswith(subdir), ('That does not look like the '
                                             'right location in the repo.')
 
+        # meta.layout is a config-cached property so instead of testing for
+        # None we test to see if the layout is 'auto' and, if so, try to guess
+        # the layout based on the commits (where subdir is compared to the
+        # revpath extracted from the commit)
         if meta.layout == 'auto':
-            meta.layout = meta.layout_from_commit(subdir, revpath, ctx.branch())
+            meta.layout = meta.layout_from_commit(subdir, revpath,
+                                                  ctx.branch())
         elif meta.layout == 'single':
             assert (subdir or '/') == revpath, ('Possible layout detection'
                                                 ' defect in replay')