How to UPDATE the readme.txt file in the tags version - tortoisesvn

I am trying to update the readme.txt file Tested up to: in the tags/1.4.1/ folder, as Otto mentioned here: https://wordpress.org/support/topic/update-plugin-tested-up-to-version-without-triggering-plugin-update-to-users/
without bumping the version
I have successfully updated the trunk/readme.txt file Tested up to: but I am not sure how to update the tags/1.4.1/readme.txt file.
~
I edited the file locally. When I right click on the file in tags/1.4.1/ and select TortoiseSVN > there is no option to 'push' or anything else that would suggest updating that file.
When I right click on the readme.txt file in trunk/ and choose TortoiseSVN > Baranch/tag it gives me an error that the file already exists.
If I right click on the readme.txt file in trunk/ and choose SVN Commit there is no option for the tags folder.
If anyone using TortoiseSVN to update their WordPress Plugin for changing the Tested up to:can provide a step by step that would be appreciated!

You can change your current tag:
Get a working copy that points to tags/1.4.1/. To do this, right click on a directory in windows explorer where you want to place your working copy. Then select SVN Checkout.... Change the 'URL of repository' to tags/1.4.1/. See: Checking Out A Working Copy
Make your local changes in the working copy you created in previous step.
Right click on the folder of your working copy and select SVN Commit... Commit your changes in the working copy you worked on in previous step. TortoiseSVN may warn you that you're trying to commit into a tag (which is true) but you can proceed anyway if that's what you want.
... or you can simply remove the tag from the Repository Browser, make your changes elsewhere (in a working copy that points to trunk) and then Branch/Tag again from the aforementioned working copy.

Related

Tortoise SVN undo checkout in repository

I am very new to Tortoise SVN so I hope I use the correct terminology...
I have a repository, say C:/RCode and I was checking it out into say C:/Working. I do not know what exactly went wrong, but I must have checked out something in my repository C:/RCode. As a result, this folder has now features of both a repository and a checked out folder - e.g. it now also has the green v icon overlay next to the icon overlay of a repository.
How can I tell Tortoise that this is should not be a checkout folder?
To make Tortoise SVN forget a folder is a checked out folder, it suffices to show hidden files and folders in the folder of interest and then delete the hidden folder .svn
The command you're looking for is an svn export. An svn checkout is the process of tracking local changes into a series of deltas (inside that .svn folder) so that you may commit changes back to the repository.
An export does essentially what a checkout does, but without the version control aspect of it. The command you would run for your example would be:
svn export file:///C:/RCode C:/Working
Or if you're using TortoiseSVN:
Right click anywhere in Windows Explorer
Enter the URL of the repository and output directory
Specify a revision (HEAD by default)
Select OK.
Simply deleting the .svn folder works as well, but it's an extra step (along with cleaning your Recycle Bin). It's also worth noting that svn export is useful for making a copy of your local working copy (a checkout) to a non-versioned copy somewhere else on your local machine.
svn export C:/Working C:/NonCheckout

How do I commit with TortoiseSVN?

There was a problem with my computer and I had to reinstall Windows (7). I installed TortoiseSVN (1.8.11 64 bit) and I see the context menus, but I don't have a commit option in my SVN directory (where the files are), only a few other options. I don't want to update the files from the server but just commit (because only I can commit to this repository). How do I enter my username & password and commit my changes to SVN?
The reason could be:
The file hasn't been changed, so there is no commit option available -> or the file is not versioned
your directory hasn't been added to the SVN
you haven't made a working copy and you are using some "backup" folders wher you lost the hidden .svn folder -> if so then make a working copy

SVN Error (Can't set file)

Everytime I try to commit files to SVN I got the following error.
Command Commit
Modified D:\Project\src\WebSite\SomePage.aspx.cs
Sending Content D:\Project\AKent\src\WebSite\Test\SomePage.aspx.cs
Commit succeeded, but other errors follow:
Error bumping revisions post-commit (details follow):
Can't set file 'D:\Project\AKent\src\WebSite\Test\SomePage.aspx.cs'
read-write: Access is denied.
After I get this error, SVN doesnt allow me to update or commit anything! And what is really frustrating me is that the project folder is around 2 GB and every night I download it from SVN over and over.
Please help me to fix it! I just wanna know what is wrong with my SVN. I tried reinstalling, didn't fix anything.
I had the same problem but fixed. My solution is:
1. Run Command Prompt as Administrator
2. Navigate to the target working copy
3. svn cleanup
The error
read-write: Access is denied.
indicates that svn can not access the file or can't set all attributes it needs to that file.
Now that either means you have not full access to those files or some other application has the file opened exclusively.
In the first case: make sure that your username has full access to all folders and subfolders of your working copy. Note that on Vista/Win7 it's not enough to be an admin - you have to give yourself full access to such files manually.k
In the second case: disable windows search indexer for your working copy, and exclude the working copy from being scanned by your virus scanner.
If you are sharing a svn versioned folder using samba and running into this issue when acessing it from windows machine, try:
http://tortoisesvn.net/faq.html#samba
Also add to your smb.conf file:
dos filemode = yes
copy the wrong folder (1) to another folder(2)
delete the wrong folder (1)
copy the backup(2) to (1)
Hope this approach works for you too!
I was trying to revert a file but was receiving the error listed in the OP's post. Soony's answer just about worked for me. I cannot comment or edit that answer, so I had to copy their answer and add a small step at the end. S/he deserves all the credit.
Run Command Prompt as Administrator
Navigate to the target working
copy svn cleanup
svn revert [filename]
(the revert did not work in Windows Explorer/TortoiseSVN integrated tools, I had to do it from the cmd line)

svn Merge Problem (3 levels of svn)

I am new to use svn and the company in which I work uses three levels (I don't know whether this is a correct word to use here) of svn. I mean the developers are provided a working directory on a testing server. When we commit, it goes to the dev server. When a manager commits it from there it goes to production server. I am a developer here and one of my files is giving error (conflict) when I commit from directory. Not only, but also it gives conflict when manager tries to commit. I am now given access as manager too but I am still unable to resolve it.
What I've tried till now:
svn update
svn delete
svn commit
It gives conflict on all of these operations.
Earlier on a simple error happened and the manager preferred to just delete file on dev, copy it manually and then commit from there. I don't know this may be a reason of this problem or not.
Please help me resolve this issue. I've read some things in read-bean book too but to no avail yet.
Thanks
Ok, here's the update. The actual problem is that a file (ex lib/a.php) used to be in my working directory as well as in dev and production servers. Now it was deleted by someone (using del command, not svn delete) from dev server. Now question here is how I add it again so that it becomes part of svn again. The simple svn add doesn't work.
Update 2
From one of the answers below I understood that its a tree conflict. Some searching brought me to http://svnbook.red-bean.com/nightly/en/svn.tour.treeconflicts.html . Following the instructions, I took the backup of the file and then svn delete it from everywhere. Then I svn add it to my directory, commit it and tried to update dev and production. End result is that it doesn't go there. No error is shown either.
svn info in my directory shows complete info of the file but on dev and production it shows
file_name: (Not a versioned resource)
:S
Any more ideas please?
Alternatively you can take backup of the file ,then say svn revert filename insert you new code.Do a svn up just to make sure you do not have any conflicts,and then commit
Or
fix the conflicts in the file and then you can say svn resolved filename and then you can continue operations on the file
Update:If your file is deleted using rm or del command use svn revert filename to get it back and you do not have to add it again.Just put in your new changes and say svn ci -m"your comments" filename
svn revert will fetch back the last checked in copy into SVN and it wouldnt have your any changes made before the user had used del command
Update 2:After u say svn delete ,u need to commit it until u get the message Deleting filename with a new revision number.Then add the file using svn add command,then commit again.Once this is done you can check the svn info, let me know..
Use svn status command to know the status of the file
The only problem apart from this i can think of is this the directory may not have been added.Is this a new directory?
ah, the old tree conflict problem.
The issue is that SVN is letting you know that you're adding a file that used to be there but it cannot tell whether you're trying to delete it, add it or just update it! So it does the only thing it can - flags a conflict so you can sort it out and fix it. Its basically a conflict on the directory level (rather than a conflict of a file's contents).
What you do is resolve the error (as others have pointed out), then update the directory to get the original file back, then commit your changes. Note that the file was never deleted from SVN - its still in the repo, and if you checkout out a new WC, you'd get the file.
Try to resolve the conflicts then commit again:
svn resolve --accept working

TortoiseSVN - "you have to update your working copy first"

When I trying to commit I get this error. What that was done, I think is a rename of the folder. I tried already rename / move the folder. But I continue to get the error.
Command: Commit
Error: Commit failed (details follow):
Error: File 'Page.aspx' is out of date
Error: File not found: transaction '99-4a', path '/trunk/src/Solution.UI/Views/ViewName/Page.aspx'
Error: You have to update your working copy first.
I do try to update, but unfortunately is doesn't solved the problem.
Command: Update
Completed: At revision: 99
Edit: after the deleted the files from the folder, do update to restore them, and replace the restored files with the originals I get this error:
Error: Commit failed (details follow):
Error: Base checksum mismatch on '/trunk/src/Solution.UI/Views/ViewName/Page.aspx':
Error: expected: ed3bc4a70ee4256bd2f7cf8c57f29a1f
Error: actual: b8a2797dc262dc714fae6dc897b5ebd2
SVN knows that there was a change in the repository, but it does not know what that changes was. You might have made exactly the same change on your working copy, but unless you actually try to do update so that SVN can run the resolve, it won't check that your local change is the same as the repo change.
Do an svn update and the conflict resolution should be automatic. Though, if you've made changes to the same files, it might ask you to manually resolve even if it's exactly the same change (Even more likely if the change was a folder rename)
You might have to do also an svn resolved to enforce the manual conflict resolution.
Worst come to worst, you can always copy the files you've changed, revert local changes, update and replace the files in the new folder.
I'm using TortiseSVN, and encountered the problem you're having.
Attempted effort: Delete a directory and the files in it.
My resolution path (entire effective procedure)
Select relevant files. Right-click | TortiseSVN | Delete
Response: Files marked for deletion.
Right-click on containing directory | TortiseSVN | Commit
Response: Files Deleted.
Right-click on the next-higher directory from the aforementioned containing directory | SVN Update
Response: Update complete.
Right-click on the directory I wish to delete | TortiseSVN | Delete
Response: Directory marked for deletion.
Right-click on the next-higher directory from the aforementioned directory-to-delete | SVN Commit
Response: Directory Deleted
Process Complete.
Do an "SVN Cleanup", then do an update
It looks like you have Page.asx in you working copy and it doesn't exist in repository anymore?
maybe try deleting it physically from your drive or if it's still needed just move it away to different location, try commiting and then add it again?
Sometimes you can get these strange broken working copy issues and despite trying everything, you can't get it to work again and you're completely unable to commit your work. One way to get out of this situation is to do the following:
Check out your project to a new folder.
Copy the modified files only from your old working copy to your new working copy. If you commit often this shouldn't take long. If you commit once a month, this could take some time...
Double check that the modifications list is the same on both working copies.
Commit from your new working copy.
Delete your old working copy and check it out again.
It's not very satisfying to do it this way as it doesn't show you what went wrong and why, but if you just want to get on with your work, then it's nice to know that there's a quick fix.
You have to update your working copy.
That is, perform an "SVN Update" in order to get the latest revision, and check to make sure your changes don't conflict.
I tried this solution and it works perfect for me .
1-Export the working copy to another Temp directory .
2-Delete all the files in your working directory
3-Check out in the working directory
4-copy the Files in the Temp directory to the working directory overwriting all existing files
5- Commit
You should just uncheck deleted or missing files when doing svn commit

Resources