From 97551b2898eb459e9b616947d87d026d27b61518 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Sun, 28 Jul 2013 05:04:41 +0000 Subject: Import subversion-1.8.1 into vendor staging area. --- subversion/libsvn_fs_base/tree.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'subversion/libsvn_fs_base/tree.c') diff --git a/subversion/libsvn_fs_base/tree.c b/subversion/libsvn_fs_base/tree.c index e603af41e7781..046ab5daa0725 100644 --- a/subversion/libsvn_fs_base/tree.c +++ b/subversion/libsvn_fs_base/tree.c @@ -4811,6 +4811,13 @@ base_node_origin_rev(svn_revnum_t *revision, prev_location() does below will work. */ path = svn_fs__canonicalize_abspath(path, pool); + /* Special-case the root node (for performance reasons) */ + if (strcmp(path, "/") == 0) + { + *revision = 0; + return SVN_NO_ERROR; + } + /* If we have support for the node-origins table, we'll try to use it. */ if (bfd->format >= SVN_FS_BASE__MIN_NODE_ORIGINS_FORMAT) -- cgit v1.2.3