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


[1] https://groups.google.com/g/tortoisesvn/c/N2bp4hyLRI8/m/8MlT8yJ_AAAJ

-- 
You received this message because you are subscribed to the Google Groups 
"TortoiseSVN-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tortoisesvn-dev/0f43666c-e282-480f-a77e-161d6ad5a871n%40googlegroups.com.

Reply via email to