• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Xcode and SVN
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode and SVN


  • Subject: Re: Xcode and SVN
  • From: Andrew Pontious <email@hidden>
  • Date: Wed, 6 May 2009 22:04:06 -0700

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?

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/ ?

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

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;


-- Andrew
_______________________________________________
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


  • Follow-Ups:
    • Re: Xcode and SVN
      • From: Wanadoo Hartwig <email@hidden>
References: 
 >Xcode and SVN (From: Wanadoo Hartwig <email@hidden>)
 >Re: Xcode and SVN (From: Andrew Pontious <email@hidden>)
 >Re: Xcode and SVN (From: Wanadoo Hartwig <email@hidden>)

  • Prev by Date: Re: Switching from 10.4 SDK to 10.5 SDK Causes Shadow Declarations Error
  • Next by Date: Re: Including C/C++ headers
  • Previous by thread: Re: Xcode and SVN
  • Next by thread: Re: Xcode and SVN
  • Index(es):
    • Date
    • Thread