tags:

views:

110

answers:

3

I have a project Foo which I errantly created the wrong tag for. It should've read 'rMMDDYYYY' but I tagged it 'YYYYMMDD' instead. I realized my mistake after having commited my change. I now want to remove the YYYYMMDD folder under the tags directory and leave the rMMDDYYYY folder instead. i.e.

before: foo/ foo/trunk/ foo/branches/ foo/tags/ foo/tags/YYYYMMDD/ foo/tags/rMMDDYYYY

after: foo/ foo/trunk/ foo/branches/ foo/tags/ foo/tags/rMMDDYYYY

Any idea how I can do this please? Thanks in advance!

+2  A: 

If you want to remove the directory, do this: svn rm foo/tags/YYYYMMDD

ErikSchierboom
Perfect! Just what I was looking for. Thanks Erik
freakwincy
+2  A: 

Just delete the tag you dont want and create afresh with the same name or a different name. If you have tortoisesvn its as simple as deleting the directory from the repo browser. Then create a new tag.

shikhar
Thanks Shikar but TortoiseSVN isn't really an option for me as I'm on a Mac. I'll keep it in mind that if I when next I'm on a Windoze (sic!) machine ;)
freakwincy
+3  A: 
Adam Liss
Thanks Adam. Didn't realize I could just do an svn mv. That would've be the ideal solution but for the fact that the directory I'd have have moved it to already exists. Still, its good to know. Guess I need to brush up a litttle more on the Subversion Book.
freakwincy
Funny, I came across a very similar problem yesterday: needed to move `https://path/to/dir` -> `https://path/to/my/dir` and solved it with "svn mv" to a temp dir, `svn mkdir https://path/to/my` and finally a "svn mv" to the new structure. Don't know that I'd have been able to do that so quickly if I hadn't come across your question first ... so thank you!
Adam Liss