Copying a directory that is version controlled
Posted
by ibz
on Stack Overflow
See other posts from Stack Overflow
or by ibz
Published on 2008-09-11T14:20:26Z
Indexed on
2010/03/29
3:43 UTC
Read the original article
Hit count: 365
I am curious whether it is OK to copy a directory that is under version control and start working on both copies.
I know it can be different from one VCS to another, but I intentionally don't specify any VCS since I am curious about different cases.
I was talking to a coworker recently about doing it in SVN. I think it should be OK, but I am still not 100% sure, since I don't know what exactly SVN is storing in the working copy.
However, if we talk about the DVCS world, things might be even more unclear, since every working copy is a repository by itself. Being faced with doing this in bzr now, I decided to ask the question.
Later edit:
Some people asked why I would want to do that. Here is the whole story:
In the case of SVN it was because being out of the office, the connection to the SVN server was really slow, so me and my coworker decided to check out the sources only once and make a local copy. That's what we did and it worked OK, but I am still wondering whether it is guaranteed to work, or it just happened.
In the bzr case, I am planning to move the "main" repo to another server. So I was thinking to just copy it there and start considering that the main repo. I guess the safest is to make a clone though.
© Stack Overflow or respective owner