PDA

View Full Version : Subversion Checkout



andre314
11th August 2015, 13:03
Hello,


After setting up Subversion in Options I try to import a project via Subversion Checkout:

Repository: file:///C:/Backup/svn/trunk
Checkout path: C:\Project
Checkout directory: trunk

But I get error messages.
How do I set the repository, path and directory?

Thanks for any help.

Regards,
André

anda_skoa
11th August 2015, 14:47
There is lots of context missing.

- Subversion options of which program?
- Which error messages?
- How is this Qt related?

Cheers,
_

ChrisW67
11th August 2015, 21:50
I assume this is Qt related because the OP is using Qt Creator but the problem is really just the arguments being passed to svn from "File > New File or Project > Project from Version Control" or the like
I do not have a copy to hand but I would expect that:


Repo path: file://c:/backup/svn
Checkout path: trunk
Checkout directory: c:\project

Might be closer.

I have always used the TortoiseSVN tools to perform the initial checkin of new projects, or initial checkout of new copies, and Qt Creator to manage minor stuff (small checkins, diffs etc) after that.

andre314
17th August 2015, 09:14
Hi Chris,

Thanks for your reaction, but what I try I don't get a checkout with Qt.
When I use TortoiseSVN I can make a working copy.
But then how do I commit a change in any file within Qt Creator?
When I make minor change and perform the command: 'Tools->Subversion->Commit' it says 'There are no modified files.'

How does Qt Creator knows where the repository is accommodated?

Kind regards,
Andre

ChrisW67
17th August 2015, 11:35
Qt knows where the repository is because that information is stored in the .svn folders of your working copy. For example, on a Linux box:


chrisw@newton ~/workspace/planner $ svn info | grep -i repos
Repository Root: http://svn/svn
Repository UUID: 3f8060b9-593f-436d-8d40-9c7c21def9b9


The Subversion functions in Qt Creator should be enabled when working in checked out folders, and not otherwise.

If you modify an existing file then it should show in 'Tools->Subversion->Commit'. New files need to be added first, 'Tools->Subversion->Add foobar.cpp'