How can I use SVN to automatically clear the content of a folder "cache" after each svn update (or maybe update is the wrong command)?
The reason for which I need that is that I want an automatic way to update Twig cache on deploy: when cache is cleared Twig will recreate the cache which is what I want.
The problem with "update" is that eventually new files are added or modified, but files created by server are not "erased".
P.S:
Deploy = synchronizing the folder on server with SVN to latest trunk/tag.
Related
I have a small problem. I deleted project on azure devops. Then I deleted local directories. Now I still have "Detected: 1 delete(s)" in Pending changes. It is a delete operation for project dir.
I tried everything, I can't get rid of this pending change.
- I tried restoring dir, not helping.
- I tried to create the whole project again and promote the change.
- I tried deleting vs tfs cache
When I try to promote the change, I always get error TF10169: Unsupported pending change attempted...
Any suggestions?
I think I finally got this working.
I created project with same name as old one.
I tried to map it to the old folder on local disk
Then I tried to delte it all again and call tf destroy
After that I deleted the project and the change was finally gone!!
By accident somebody commited cache files to SVN (svnignore was wrong)
I updated the SVN ignore and want now to remove all the currently ignored files from the SVN (local copies should be kept).
How do to that?
You will have to remove the ignored items in the repository first and ask the users to run svn update as they always do. The items will be removed in the user's working copies and this should be completely OK just because every user at the moment should be seeing constant conflict errors, especially when he rebuilds the project.
Once you remove the cache files, they will be ignored in the working copies and no one will commit them by mistake anymore.
Another user on a different machine checked out files and was working on them until her computer crashed, keeping those files checked out. Is there a way to check in that work?
Some files in one repo she's made some changes to since her computer was reimaged. She was able to save them, but I am not sure if they will be permanently changed. If the old files are checked in, will it affect the changes that she's made in the past couple days? Is there a way to accept the most current changes?
I've used the workspace sidekick from Attrice, but not sure if that is on the right path.
Files that are checked out should be viewed as a reservation. If the files exist in the form that can be checked in either:
Recreate the working folder and recreate the workspace and copy the files to the correct subfolders and check in
preferred approach cancel the check-in, create a new workspace, get latest and merge the copies of the files into the new workspace and check-in.
the undo from the other workspace can be accomplished with the following tf command.
tf undo /workspace:OtherUserWorkspace;OtherUser $/Project/ItemName.cs /s:http://yourtfsserver:8080
I've been saving all my source files using the xcode git repository. I saw some articles online about speeding up the Mac performance and I used a tool called 'Monolingual' to cleanup unwanted language files on the hard drive. Unfortunately this also deleted my entire user directory along with all my source code.
Is there any way to retrieve the files from the local git? When i try to view them from xcode organizer, it doesn't show the previous saved repositories
The question is: did it remove also the .git directory which contains your code history?
If yes, then you need to restore (from a time machine backup for instance) at least that directory, in order to be able to checkout again your working tree from that git repo.
I have new files added on TFS and some other checked out but on my older workspace. Now my machine is changed and I want to have those files on my new workspace.
Is there any way to have these changes replicated/imported to my new workspace?
You have to check in the changes or create a shelveset on your old workstation and take a get latest on your new computer.
http://msdn.microsoft.com/en-us/library/ms181403(v=vs.80).aspx
If you still have access to your old machine, you can either check in the changes or put them on a Shelveset (if you don't want to check them in for everyone to see). Then on your new machine either do a Get Latest Version (when you had checked the code in) or Unshelve the changes to your new machine.
If you don't have access to your old machine, then these changes are not available. TFS doesn't get the changes version of your files until you either check in or shelve. You'll have to consider them lost and unrecoverable.
If you have access to the old machine, but the old machine can no longer access TFS, copy the old workspace to the new machine and then use the Compare folder option to merge your changes into your new workspace.
To prevent accidentally losing your changes you can install an extension which automatically shelves your changes.