11-27-2019 06:32 AM - edited 11-27-2019 06:34 AM
If the files are in the repo, you should see the green 'v' icons on each file and folder.
If you don't see those icon overlays, something is wrong.
If all's well, simply open the files from the repo, and change them. The icons should turn to red "x" for the files you've changed, or the folders that have changed files.
@metzler wrote:
make a working copy of the files in another folder, change those, and then add and commit them to the repo?
If so, do I then delete the working copy?
You can do that, but it won't be very practical.
Note that the folder is not the repo. It's a checkout of the repo. The files are kept in a 'database' (the 'repo'), and you can't (conceptually) change them once they are committed. Each new commit will change the head or branch in the repo, keeping the previous version. In fact, only the changes are stored.
11-27-2019 06:37 AM - edited 11-27-2019 06:40 AM
I have been changing the files in the folder, and then seeing the red x on them. I then commit them and the x turns to a green v.
Since the folder is not actually the repo, sounds like I have been doing it the right way.
Thanks.
11-27-2019 06:57 AM
@metzler wrote:
I have been changing the files in the folder, and then seeing the red x on them. I then commit them and the x turns to a green v.
Since the folder is not actually the repo, sounds like I have been doing it the right way.
Thanks.
That's spot on. Changed files turn red, until you commit.
Careful though! If you revert to a previous revision (an old state of the code) you will still get green icons. Green icons tell you the files did not change compared to the revision that was checked out.
This also means that when someone else changes the code (or you changed the code from some other location) the icons stay green. The files did not change compared to the revision you checked out, so that is correct. But confusing. It does not signal the changes between the latest commit, but the changes to the revision that was used. This is handled good though. When you commit the changes, and other changes where committed, SVN will notice, and you can get conflicts that will need to be resolved.
It's not that hard once you get the model right.
11-27-2019 08:05 AM
The only issue I have with versioning software is not actually with the software; it's that if you even have one person who doesn't know what they are doing, it can cause headaches forever.
11-27-2019 08:09 AM
An important aspect of Version Control is the Repository. This has the "crown jewels", a "safe" version of your code, and all its previous incarnations and iterations. Ideally, it should not be on your PC, but rather on a Server "somewhere" (most are "out there on the 'net") where they are being constantly backed up and protected against data loss. It is not the same thing as having "another copy" on your PC somewhere!
@Gregory posted a link to a tutorial by Fabiola de la Cueva on TortoiseSVN, using a Toolkit from Viewpoint that helps with some of the trickier steps (setting up the initial Repository). One minor complaint (from me) is that she seems to be using (as the location of the Repository) a Network Drive instead of an external Server, but I trust that this drive is being "protected" by being properly protected from data loss.
Here is a simplified description of using SVN:
Hope this clarifies some points. I recommend Fabiola's video (despite my quibble).
Bob Schor
11-27-2019 08:19 AM
@billko wrote:
The only issue I have with versioning software is not actually with the software; it's that if you even have one person who doesn't know what they are doing, it can cause headaches forever.
Biggest problems I had was with people not using it.
Commits once every two weeks (commit small changes).
Releasing executables without tagging (tag\branch when appropriate).
Not commenting at all (even a small message is better than nothing).
Headaches for sure, but I'm not sure if it would have been worse without SCC, although it's easy to get to depend on it.
11-27-2019 09:39 AM
"I don't see that when I check files out. I think you can manually tell TSVN to lock files and folders, and I think you can also change the checkout behavior in the settings, but I believe the default settings are not to mark files as "in use"."
Yes, that's a SVN setting. If you want more of a 'check out - check in' behaviour you can have it set Read only no checkins and a checkout will then flag it in the database and remove the read only-flag. It can be helpful to avoid checking in recompiled code that affects others.
A coworker that had been working too long solo in a repo was way too used to simply recomile and force commit any changes (since it used to be only him workin on the code) that he commited over other real changes several times ... In that case this would have been good.
/Y
11-27-2019 12:16 PM
wiebe@CARYA wrote:
Not commenting at all (even a small message is better than nothing).
Headaches for sure, but I'm not sure if it would have been worse without SCC, although it's easy to get to depend on it.
When I create a Repository, I set its Minimum Log Size to 40, which requires at least a 40-character Comment in order to Commit. I occasionally have to re-commit because I had the Project File still open (almost a trivial Commit), so I add characters and say "Stupid Bob, he forgot once again to close the Project before committing." or something similar to hit the 40-character limit.
It is described in section B.2.2. of the TSVN Help.
Bob Schor
11-27-2019 01:29 PM
@Bob_Schor wrote:
wiebe@CARYA wrote:
Not commenting at all (even a small message is better than nothing).
Headaches for sure, but I'm not sure if it would have been worse without SCC, although it's easy to get to depend on it.
When I create a Repository, I set its Minimum Log Size to 40, which requires at least a 40-character Comment in order to Commit. I occasionally have to re-commit because I had the Project File still open (almost a trivial Commit), so I add characters and say "Stupid Bob, he forgot once again to close the Project before committing." or something similar to hit the 40-character limit.
It is described in section B.2.2. of the TSVN Help.
Bob Schor
I am embarrassed to say I've had to commit my project file separately too many times... and put in the same kind of comment.
11-27-2019 07:23 PM
@billko wrote:
I am embarrassed to say I've had to commit my project file separately too many times... and put in the same kind of comment.
By the authority vested in me by the Community and my Knighthood, You are Forgiven! Shape up, man!
Bob Schor