Export local repository or changeset - rational-team-concert

I have to send a project to another party. Is there a way to export it? My IDE does not have this feature. With git or svn it would be trivial.
I do not want to send RTC or IDE metadata.
I use the Eclipse client.

Related

Visual Studio Online integration with CodePlex

Is there a way to integrate a Visual Studio Online repository with a CodePlex project in a way that when I update code in Visual Studio Online it reflects and updates the CodePlex project?
No, this is currently not possible in an automatic way.
But as a workaround you could setup both systems to use Git as the repository type and use a local git repository to sync between both remote repositories.
To do so create a new local repository using
git init
Then add the two remotes
git remote add codeplex https://git123.codeplex.com/project
git remote add vso https://account.visualstudio.com/defaultcollection/_git/Repo
Now you can work in your local git repository and when you want to push the data to either Visual Studio Online or CodePlex you can push the data using:
git push codeplex master
git push vso master
Both git repositories will be cryptographically the same.
If you want to show your CodePlex user name in codeplex, you'll need to setup your git user name to that.

Moving code from mercurial to TFS

We are planning to move to TFS. While i hate it we have to do it for various reasons.
We have dev, staging and live branch. Do we move the source for each of the branch to TFS as separate folder and convert it to a branch later on?
Is it possible to take history along?
Is there a tool or a script which can do it?
I've not been able to find a way to convert directly from Mercurial to TFS. It looks like your best bet could be to convert your Mercurial repository to a Git repository and use git-tfs to push those changes to TFS.
I'm not familiar with Git or TFS so you'll have to do some more research to find out the exact steps but here's how I think that I'd go about it:
Convert your Mercurial repository to a Git repository (perhaps this will help)
Create your empty TFS repository
Clone your TFS repository using this page as a guide
Use git to push your converted Mercurial Git repository to the TFS Git repository
Use git-tfs to push those changes to TFS
I don't know if that will copy all the history over or if you'll just have one check in with the final copy of the code.

How do I use Tortoise HG to set up a repository on my computer?

I was given the company website for our repository on a new project, but I don't know how to set up the repository on my computer using Tortoise HG. Our previous project was already set up on my machine when I started working so I didn't need to know how. I would feel more comfortable asking this community rather than my boss.
The repository is a "Mercurial repository". The website itself is set up in this way.
I've downloaded the files from the "zip" button, but don't know how to connect that file to the website using Tortoise so things I do will actually affect the real repository.
How do I set up the Tortoise workbench so that I can pull and push changes to the repository?
The zip contains only the files without any of the mercurial specific part. You can delete it, we won't use it to setup your personal repository.
First of all you need to have the URL to access your repository. Depending on the configuration of the server, it can be through HTTP, SSH or even a network share. Then you will eventually need credentials.
You can look for a "clone" URL somewhere on the website or ask a coworker / your boss for this.
Once you have the URL, you simply clone the repository with TortoiseHG : http://tortoisehg.bitbucket.io/manual/2.9/clone.html
You can now use your repository like the precedant one.

Mercurial and online sharing - how to proceed

A noob question... i think
I use Mercurial for my project on my laptop. How do i submit the project to an online server like codeplex?
I'm using tortoisehg and i cant find the upload interface for submit the project online...
From the command line, the command is:
hg push <url>
to push changes a remote repository.
In TortoiseHg, this is accessed through the "Synchronize" function, which seems to show up if you right-click in a Windows Explorer window but not on any file. It's also available in the workbench; the icon is 2 arrows pointing in a circle.
For these things, I find the best way to go is to use the command line interface - TortoiseHG is OK if you need to perform some common operations from the file browser, and it's a nice tool to visualize some aspects of your repository, but it doesn't implement all of mercurial's features in full detail, and it renames and bundles some operations for no apparent reason.
I don't know how things work at codeplex, but I assume it is similar to bitbucket or github, in which case here's what you'd do:
Create an empty repository on the remote end (codeplex / bitbucket / ...).
Find the remote repository's URL - for bitbucket, it is https://bitbucket.org/yourname/project, or ssh://hg#bitbucket.org/yourname/project.
From your local repository, commit all pending changes, then issue the command: hg push {remote_url}, where {remote_url} is the URL of the remote repository. This will push all committed changes from your local repository to the remote repository.
Since the remote's head revision (an empty project) is the same as the first revision in your local copy (because all hg repositories start out empty), mercurial should consider the two repositories related and accept the push.
For an introductory guide to command-line mercurial, I recommend http://hginit.com/

Cloning/Converting Local Perforce Workspace to Mercurial Repo

I'm new to Perforce and Mercurial, so bear with me. I would like to use Mercurial to interface with Perforce in the following way:
I check-out a local Perforce workspace using the P4V client. I then clone a Mercurial repo of that workspace, and use this cloned repo for all my work. When I need updated files, I would first update the local Perforce workspace, and then have the Mercurial repo pull from that. When I'm ready to commit, I push my changes to the local Perforce workspace. Then I use the P4V client to commit my changes in the Perforce workspace to the Perforce depot. Essentially, the local Perforce workspace is a proxy for the Perforce repot.
The reason behind this set-up (versus the common scenario of directly pulling from and pushing to the Perforce repot) is that there is some configuration I need to do via the P4V client (such as mapping/renaming files and directories).
I've looked at the convert and perfarce extensions, but I'm not quite sure they do what I want. They seem to do a one-time conversion, and then thereafter they talk directly to the Perforce repot. Any help would be appreciated.
Convert does an incremental conversion, where it will convert only new changes, but it's unidirectional only (perforce -> mercurial).
I've not looked at the perfarce extension, but it's my understanding that's it's built for a bi-directional, continuous process -- you might want to look at it again.
Alternately, the non-extension options on the Working with Subversion page in the mercurial wiki, details a process for using Mercurial alongside/atop Subversion w/o them interacting in any way except for the file working directory. That's probably very similar to what you're looking to do.
The Perfarce extension should do what you want. I'm also experimenting with a similar setup, and I can pull & push to Perforce quite happily.
I must admit I am having issues with local config files and how they operate in this environment, but there's a couple of other answers here on SO that appear to address this.
I would recommend you give Perfarce a go first, before reverting to anything more manual.