I have a .NET project,and using VisualSVN Server and tortoiseSVN Client.
Sometime when i finish a task, and i ensure that is stable enought to production use,i will do the follow :
1.open the repo-browser , delete all the files in /trunk.
2.Import the latest copy to /trunk from my local project.
3.switch to /tag ,create a folder name with datetime (e.g. 2011.03.30), and import the latest copy from my local project again.
however, the files in /tag ,the revision is newer then /trunk.
But both set files is same.
So my question is, how to make them consistence?
Or my step is wrong?
As i know /trunk is current version, even stable or in-development.
/tag is for stable build.
In addition to what @Keith wrote, you need to understand revision numbers in SVN: they are sort of like a counter of changes made to the entire repository. There are version control systems like CVS which operate on the file level and there it’s possible to have the version numbers of files in sync between branches, but in SVN you create a copy in order to create a branch. That is a modification of the repository and thus you get a new revision.
If you do not delete and recreate but instead use normal SVN copies then you don’t need to know any revision numbers at all since you can see in the SVN log of the corresponding files when and where they where “branched” from.