Find statement history for SVN working folder

We have an intranet site supported by SVN, so the site is a copy of a copy of the repository (the working folder used only by IIS). Today, something on the site is causing problems, and I want to know how to find out what has been checked in this working folder in the last 48 hours.

Update: If you need to enable to enable this in the future, what is it?

Also, as an investigative question, if I have to use file creation time, how can I do it quickly in a recursive manner for a large folder?


If I need to check the creation time, then this question will be useful for solving.

+4
source share
4 answers

All code in the web folder must be supported by SVN commits, right?

If so, you can easily track the problem by simply looking at the SVN logs for the last few changes that have been committed. svn info will tell you which edition the working copy is in, so you know where to start looking

Once you track the commit with an error in it, you can use svn blame to find the person who did it and explain to them what they overlook and how they caused the error. Then you can get them to buy all the dinners for ruining the site.

If you locally modified / added any files that are not in SVN, then svn stat and svn diff will show you what these changes are, so you can find out if they caused a problem. Then you must undo these changes so that your working copy is a clean check or commit changes to the repository.

There is nothing worse than trying to track down an error in your code, only to find out after 3 hours that the error is not actually in any of your codes, but in some stupid local setting someone made in a working copy that never turned out perfect: - (

+1
source

You can use creation dates for local files. You cannot use modification dates because Subversion sets the ones that were last changed at checkout.

Subversion can also log checks, but the server side

+2
source

Depending on how you access the SVN repo - if you access it as a file: // URL, I think you're out of luck. But if you use svnserve or one of the HTTP gateways, you can check your server logs for access to SVN URLs.

+1
source

I would run svn st in a web folder (to find any files that were changed after checking) and compare them with the repository.

0
source

Source: https://habr.com/ru/post/1276632/


All Articles