Re: SVN::GetRootAndHead

Stefan via TortoiseSVN-dev <[email protected]> Mon, 29 Apr 2024 10:28:26 -0700 (PDT)
Newsgroups gmane.comp.version-control.subversion.tortoisesvn.devel
Message-ID <[email protected]>
------=_Part_42708_198767445.1714411706453
Content-Type: multipart/alternative; 
	boundary="----=_Part_42709_1284506834.1714411706453"

------=_Part_42709_1284506834.1714411706453
Content-Type: text/plain; charset="UTF-8"

would it work if we do both?

            rev = cachedProperties.GetHeadRevision(uuid, path);
            if ((rev == NO_REVISION) || (m_err != nullptr))
            {
                svn_error_clear(m_err);
                rev = cachedProperties.GetHeadRevision(uuid, url);
            }
I don't have a setup ready to test this. At least it would be better than 
before:
- if the path doesn't exist anymore, we try again with the root
- if root works, fine
- if root doesn't work either, it's no worse than before

Stefan

-- 
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/f0a0e607-cecc-45ac-94b5-0e3bd5a07946n%40googlegroups.com.

------=_Part_42709_1284506834.1714411706453
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

would it work if we do both?<div><br /></div><div>=C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 rev =3D cachedProperties.GetHeadRevision(uuid, path);<br =
/>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 if ((rev =3D=3D NO_REVISION) ||=
 (m_err !=3D nullptr))<br />=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 {<br =
/>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 svn_error_clear(m=
_err);<br />=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 rev =3D=
 cachedProperties.GetHeadRevision(uuid, url);<br />=C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 }</div><div>I don't have a setup ready to test this. At l=
east it would be better than before:</div><div>- if the path doesn't exist =
anymore, we try again with the root</div><div>- if root works, fine</div><d=
iv>- if root doesn't work either, it's no worse than before</div><div><br /=
></div><div>Stefan</div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;TortoiseSVN-dev&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:[email protected]">tor=
[email protected]</a>.<br />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/d/msgid/tortoisesvn-dev/f0a0e607-cecc-45ac-94b5-0e3bd5a07946n%40googlegr=
oups.com?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.com/=
d/msgid/tortoisesvn-dev/f0a0e607-cecc-45ac-94b5-0e3bd5a07946n%40googlegroup=
s.com</a>.<br />

------=_Part_42709_1284506834.1714411706453--

------=_Part_42708_198767445.1714411706453--