Hi,
In the users group, a user reported an error when starting View log from the repobrowser using a peg revision if the file had subsequently been deleted, see [1].
I have investigated and it seems SVN::GetRootAndHead is calling GetHeadRevision with a path (which potentially is deleted and thus the repository will return an error). A few lines above, the code has retrieved the root URL.
I've tried the following patch which seems to resolve the issue.
[[[
Index: SVN/SVN.cpp
===================================================================
--- SVN/SVN.cpp (revision 29681)
+++ SVN/SVN.cpp (working copy)
@@ -2806,7 +2806,7 @@
}
else
{
- rev = cachedProperties.GetHeadRevision(uuid, path);
+ rev = cachedProperties.GetHeadRevision(uuid, url);
if ((rev == NO_REVISION) && (m_err == nullptr))
{
CHooks::Instance().PreConnect(CTSVNPathList(path));
]]]
Any comments?
Kind regards,
Daniel