Lets say that I'm merging a directory from branch-alpha
into trunk
. There is a new file called phi.txt
in branch-alpha
that will be merged into trunk. Will the revision of phi.txt
change?
I sense terminological/conceptual problem ;-)
In Subversion, files do not have revision numbers (as opposed to, say, CVS). Revision number is a property of a commit.
But, any given file might be present or absent in a particular revision, and have a particular state in it.
Say, given a series of revisions …→@10
→@11
→@12
…, a particular file might have been changed in the @11
th revision, but you still are able to refer to the contents of that file using any of these revision numbers, just referring to that via @10
will give the "old" contents, and via @11
and @12
will give the "new" (and the same) contents—that is, until some future revision, @N
in which that file will be changed again.
And then referring to it via some past revision @P
P<N will refer to the file's contents as found in rev. @11
, and using future revision numbers @F
F>N will refer to its contents as recorded in @N
.
Answering the question directly now:
Just in case you didn't know, you can refer to the state of a particular file as found in a particular revision using path/to/the/file@rev
like in app/js/foo.js@12345
.
Is it clear now?