i want to add repository svn like this https://.../svn/IOS/xxxx
but the xcode always change it to this: https://.../svn/IOS
It sounds like XCode is saying that it wants you to enter the URL to the root of your repository. It then provides a UI that will let you browse and select the path within the repository that you want to checkout. This might just be for UI reasons so that, for example, if you want to access /branches or /tags later you can do so via the same UI.
Related
Tell me please what's the right way to change e.g. an api url by changing the git branch for requests to the right server.
i have two servers (for example):
https://www.production.com
https://www.development.com
and two branch:
master
dev
is there any way to do like this:
let uploadSomethingUrl = url + "/upload/something"
where url is set depending on the checked out branch
"dev" is checked out -> https://www.development.com/upload/something
"master" is checked out -> https://www.production.com/upload/something
No, you cannot check which branch you currently checked out and react on it in code.
But what you can do is set configuration for Debug and Release Builds (or any other custom you want). It may take some fiddling around if you haven't done this before, but this is a clean way to achieve your goal. Here is a guide on how to do it
using xcconfig for you xcode project
You can access these setting in your code, read here:
How can I access a user-defined Xcode build setting?
When I click on a source file on the Bitbucket web interface, I am directed to a URL something like the following:
https://bitbucket.org/team/someproject/src/ab59759347f7298e875t9c5764d3228d7124aee8/someproject/api.py?at=master&fileviewer=file-view-default
I need to be directed to something like the following instead:
https://bitbucket.org/team/someproject/src/master/someproject/api.py?at=master&fileviewer=file-view-default
How can I change Bitbucket settings to accomplish this?
You've already done it in your example. The commit hash will always take you to a specific revision, but if you replace that with the branch name then it will take you to the head or tip of that branch.
How to go about renaming a job in jenkins?
Is there another way than to create a new job and destroying the old one?
In Jenkins v2, in your dashboard or job overview, click right button on the job and select rename:
In the version we're running (1.480) it is simply a matter of changing the Project name in the Configure menu and hitting Save afterwards.
Cheers,
In New Jenkins, Click Rename link present in the left navigation pane, Update the job name and click save.
Simply change the name in the Pipeline/Project name and hit save.
Note that if your browser window isn't wide enough the "popup" below will be offscreen so make sure you scroll down or your jobs may mysteriously not rename.
"Are you sure about renaming old-job to new-job?"
Use the "Configure" option to the left:
Example showing Configure option
(Sorry, first few posts so I'm not able to post images in directly yet!)
If you can't see this then make sure you have access rights - in other words, you may need to be logged in, and you will need privileges that allow you to administer that job/pipeline.
I am new to iOS development. We are using SVN for code repository.
I wanted to know whether there is a way to set some rules on code check in? i.e. suppose we have a code guideline and we want everyone in the team to adher to it religiously. We can set some rules via which automatically it can be found out whether the person has followed the guidelines or not.
Something like TFS check in policies?
You can use on server side the so called "hooks".
Most important is the pre-commit-hook
You can found them on the server inside the repository in the directory hooks
You can place any executable there and it will be called during commit. There is a svncommand called svnlook which you can use to look directly into the transaction to be committed.
In each repository there is one example for each hook SVN provides. These templates showing a sample implementation with some meanigful bash script.
more infos about hooks
I've got a need to checkout an entire source tree out of one server and check it into another server. I'm attempting to script this into a final builder script, but am running into some snags. I'm able to check everything out, but when I attempt to check it into the new server it tells me there are no pending changes. Obviously I'm missing something if this is even possible.
Anyone done something similar to this or know of a way I might accomplish this?
One more thing, if the src is empty on server 2 would I have to manually add the files before I can update them?
I would guess that the reason that TFS is saying no pending changes is that you haven't checked out the files from Server 2. This could get kind of ugly using a single directory, so I would recommend trying this:
Get (latest or specific version) from server 1 to
C:\Server1Files...
Get and Check out for edit everything from server 2 to
C:\Server2Files...
Copy from C:\Server1iles1\ to C:\Server2Files
Check in from C:\Server2Files
I think TFS is going to complain if you try to use a single directory here, as it would see the same directory mapped to two different workspaces (even though they're on different instances of TFS).