Reputation: 13899
So, i've been working on a project for a long time and when I finally came to a release version and wanted to create a tag I suddenly realized, that the person, who set up the SVN server somehow didn't create trunk/branches/tags folders. So, the trunk is in the root folder of the SVN directory.
Is there any normal way I could create a tag?
Upvotes: 0
Views: 180
Reputation: 272822
Create a trunk
directory, move everything else into it. Then create a tags
directory. Done!
svn mkdir trunk
for file in *; do
if [ "$file" != "trunk" ]; then
svn mv $file trunk/;
fi;
done
svn ci -m "Move everything into a trunk directory"
svn mkdir tags
svn ci -m "Create a tags directory"
Upvotes: 5