Checking out a Working Copy Documentation

28 views
Skip to first unread message

David Lowe

unread,
Jan 18, 2022, 11:57:54 AM1/18/22
to TortoiseSVN
I'm new to using a centralized version control system (used git for years) so this might be my misunderstanding.

Going through the docs I think there is a bug in the 'Checking out a Working Copy' section.

It tells you to Checkout 'file:///c:/svn_repos/trunk/Widget1' but for me at least that didn't work and it needed to be 'file:///c:/svn_repos/trunk/'

Thanks,
Dave

Bruce C

unread,
Jan 18, 2022, 2:54:08 PM1/18/22
to TortoiseSVN
It seems that you're having a problem with the " Checking out a Working Copy " sub-section of the "Go for a Test Drive" section, rather than the separate "Checking Out A Working Copy" section.

Here's what I did.
  •  Create a new folder named C:\Projects
  •  Create a new sub-folder named C:\Projects\Widget1
  •  Create 2 files in the C:\Projects\Widget1 folder named test1.txt and test2.txt
  •  Open C:\Projects\Widget1\test1.txt and add the text "Hello" (and a CR/LF) [The content isn't important.]
  •  Open C:\Projects\Widget1\test2.txt and add the text "World" (and a CR/LF) [The content isn't important.]
  •  Create a new folder named C:\svn_repos
  •  Open the C:\svn_repos folder in Windows Explorer
  •  In the right pane, initiate the context menu with a right mouse click
  •  Select the context menu item TortoiseSVN | Create repository here
  •  In the Repository created dialog, click the Create folder structure button
  •  Click OK to close the dialog that confirms that the default directory structure has been created
  •  Click OK to close the Repository created dialog
  •  In Windows Explorer, navigate to the C:\Projects\Widget1 folder
  •  In the right pane, initiate the context menu with a right mouse click
  •  Select the context menu item TortoiseSVN | Import...
  •  In the Import dialog, set the URL of repository to file:///c:/svn_repos/trunk
  •  In the Import dialog, set the Import message to Initial import of Widget1
  •  Click the OK button to start the import
  •  An Import Finished! dialog reports the success
  •  Use Windows Explorer to delete the C:\Projects\Widget1 sub-folder
  •  Use Windows Explorer to create a new sub-folder named C:\Projects\Widget1-Dev
  •  In Windows Explorer, navigate to the C:\Projects folder
  •  In the right pane, right click on the Widget1-Dev folder
  •  Select the context menu item SVN Checkout
  •  In the Checkout dialog, set the URL of repository to "file:///c:/svn_repos/trunk"
  •  Confirm that the Checkout directory is set to "C:\Projects\Widget1-Dev"
  •  Set the Checkout Depth to Fully recursive
  •  Set the Revision to HEAD revision
  •  Click OK to start the checkout
  •  Use Windows Explorer to select the C:\Projects\Widget1-Dev folder
At this point the right pane of Windows Explorer should show the test1.txt and test2.txt files. Each will have an icon with a green tick. If your system is configured to show hidden files, the folder will also include a folder named ".svn". [That need never be touched.]

This isn't relevant to your query but one of the stumbling points that I've seen with users that have transferred from git is that they tend to checkout the full repository (i.e. including trunk, branches, and tags sub-folders). In Subversion, it's more typical to checkout an element of the repository (e.g. only trunk, or only a single branch, or only a single tag). You might not be thinking that way but it's something I've observed in a few, unrelated developers that were more familiar with git than Subversion.

Hope this helps.

David Balažic

unread,
Mar 7, 2022, 3:20:06 AM3/7/22
to TortoiseSVN
On Tuesday, 18 January 2022 at 20:54:08 UTC+1 Bruce C wrote:

>  This isn't relevant to your query but one of the stumbling points that I've seen with users that have transferred from git is that they tend to checkout the full repository (i.e. including trunk, branches, and tags sub-folders). In Subversion, it's more typical to checkout an element of the repository (e.g. only trunk, or only a single branch, or only a single tag).


You can also checkout a single (sub)folder or even just a single file. This makes sense in some big projects, where you just need a smaller part.

Also, some operations can be done right in the repo browser, without checking out anything. For example creating tags (copies).

Regards,
David
Reply all
Reply to author
Forward
0 new messages