Re: Xcode and SVN
Re: Xcode and SVN
- Subject: Re: Xcode and SVN
- From: Wanadoo Hartwig <email@hidden>
- Date: Thu, 7 May 2009 19:21:51 +0200
Hi Andrew,
Am 07.05.2009 um 07:04 schrieb Andrew Pontious:
On May 6, 2009, at 1:13 PM, Wanadoo Hartwig wrote:
OK, here are some examples:
1)
1.1) Create a folder in the finder
1.2) Create a file in the newly created folder by any editor
1.3) Take a project that is linked to a SVN repository
1.4) select "Add -> Existing files..." and select the newly created
file in the newly created folder; select "Recursively create ....",
too.
1.5) Result: new file is added to the project, but no new group is
created; file is not marked as unknown nor added to repository
Remark: this works in case a file is chosen inside a folder that is
already part of the repository
I can verify that I can reproduce that behavior.
What's happening is that the file is added directly, but it's
created with a relative path of Directory/. You probably expect a
group named Directory to be added to the Groups & Files tree of the
project, yes? And then the file added inside that Group?
And as far as the repository goes, do you expect to be prompted as
to whether you want the files added to your SCM system?
Yes, I think it is logical to copy the structure to the SCM system and
Xcode. Actually, not even a group is created although Xcode should. If
SCM is deactivated Xcode creates the group.
2)
2.1) Create a new folder in the finder
So, for example, /Volumes/My Hard Drive/A/
2.2) Create a file in the newly created folder by any editor
/Volumes/My Hard Drive/A/A.m
2.2) Choose Repositories in Xcode and import the newly created
directory
So you're importing /A/ ?
Yes.
2.3) Checkout the newly imported directory
Let's say you check it out to
/Volumes/My Hard Drive/My Checkout/
so now you have:
/Volumes/My Hard Drive/My Checkout/A/A.m
No, I check it out to
/Volumes/My Hard Drive/My Xcode Projects/My Project/A/A.m
2.4) select "Add -> Existing files..." and select the newly created
file in the newly created folder; select "Recursively create ....",
too.
Where are you attempting to add them from? Some other folder with an
Xcode directory, such as this?
/Volumes/My Hard Drive/My Xcode Projects/My Project/My
Project.xcodeproj
If you checked out /My Project/, but then tried to add files from a
completely separate checkout, /My Checkout/, then Xcode can't
currently handle that. In order to be able to use Xcode's built-in
SCM support, all files have to be under one root directory, which is
checked out from a single SCM source.
2.5) Result: new file is added to the project, but no new group is
created;
BTW: the SVN / Xcode project is completely messed up if you delete the
file A.m via Xcode. Try to run SCM results or Update Entire Project
after A.m has been removed.
-- Andrew
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Hartwig
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden