Check updates in specific directory in svn c# -
i'm trying check if svn subdirectory updated, , if so, update entire working directory.
here do:
svnclient svnclient = new svnclient(); svnworkingcopyclient workingcopyclient = new svnworkingcopyclient(); svninfoeventargs svninfo; svnworkingcopyversion workingcopyversion; uri svnrepository = new uri(m_svnaddress + /local/trunk/somefolder"); svnclient.getinfo(svnrepository, out svninfo); workingcopyclient.getversion("c:\\workspace\\somefolder", out workingcopyversion); int recentsvnrevision = unchecked((int)svninfo.revision); int currentversion = unchecked((int)workingcopyversion.end); if (recentsvnrevision != currentversion) // stuff
the problem recentsvnrevision
set latest revision number of entire directory on svn, , not revision of /local/trunk/somefolder
directory.
any ideas?
you can use latest revision number specific directory:
svninfoeventargs info; client.getinfo(remotepath, out info); return info.lastchangerevision;
where remotepath directory of folder want check (ex. https://svn.exmaple.com/local.../somefolder), opposed path of repository.