how to download source code from code.google.com - version-control

I need to download the source code of a project that is on code.google.com
I'm unable to execute the command given in the checkout section. How do I do it? This is the command to be executed in command prompt.
hg clone https://code.google.com/p/gpspeedo/

hg is the mercurial command. You'll need to have mercurial installed to do this.
Take a look here for information on mercurial

Related

Add remote SVN repository for VS Code

I installed the plugin, but couldn't find anything in the documentation for the VS Code SVN plugin. I'm just looking to point it to a remote svn repository. Thanks.
If you are asking about the SVN-scm plug-in, you can check out a working copy using the SVN: Checkout command in the Command Palette.

How to add the Gerrit Change-ID in Visual Studio Code commit

In our project Change-id is mandatory for commits, but I did not found how to add it in Visual Studio Code.
I downloaded the "Gerrit" plug-in, but even so I did not fond a way to add the Change-ID
Any idea?
You need to install the "commit-msg" hook in the ".git" directory of your local repository.
See more details in the Gerrit documentation here.
Basically you need to go (cd) to your local repository and execute the following command:
gitdir=$(git rev-parse --git-dir); curl --create-dirs -Lo ${gitdir}/hooks/commit-msg https://GERRIT-SERVER/tools/hooks/commit-msg; chmod u+x ${gitdir}/hooks/commit-msg
After that, every time you create a new commit or change (--amend) an old one, the Change-Id will be automatically added.

How to use git lfs with Visual Studio Team Services hosted build agents

I use git lfs to store the large files of my git repo. I then try to build this repo with hosted agents. My build is pretty simple. It has a single task: Execute PowerShell. In the invoked script, the first thing that I want to do is to fetch my lfs dependencies. I therefore have the following in my script:
& git lfs fetch
Unfortunately, my build fails with the following error:
2016-03-04T19:49:05.7021988Z ##[error]git: 'lfs' is not a git command. See 'git --help'.
2016-03-04T19:49:05.7031986Z ##[error]Did you mean this?
2016-03-04T19:49:05.7041987Z ##[error] flow
Since I can't install anything on hosted agents, how am I supposed to have git lfs available?
EDIT
In this issue, I am not talking about git lfs authentication problems as described here. I am strictly talking about the issue of calling git lfs.
Once you are able to call git lfs, look at this answer to solve the authentication problem.
Git LFS is now supported by default on the Hosted Build Controller. But you do need to enable it in your get sources step.
You get this error message because git-lfs isn't installed on Hosted Build Agent by default.
And since you are using Hosted Build Agent, it would be a little troublesome to install git-lfs via Chocolatey on it as you don't have administrator permission. An alternative way would be download the binary files for git-lfs directly and upload it into Source Control. Then you can invoke the git-tfs.exe with an absolute path in your script.
Here are some more details around the solution provided by Eddie. git lfs is not a built-in command. It is a git custom command.
When you call git lfs, git.exe does not know about the lfs command. So it looks in the PATH environment variable and searches for a program named git-lfs.exe. Once found, it calls that program with the provided argument.
So calling git-lfs.exe pull is equivalent to calling git.exe lfs pull.
The solution suggested is therefore to download git-lfs.exe, add it your git repo (it should obviously not be tracked by LFS), and call git-lfs.exe.
It is also possible to add the folder that contains git-lfs.exe to your path environment variable. This makes it possible to use commands like git.exe lfs pull as you usually do.
If you are allowed to install software and have internet access during build you might be able to install git-lfs using the Chocolatey package in a cmd / PowerShell task prior to your git-lfs operation.

How To Delete File From RTC Changeset Using CLI

I'm using the RTC 3.0.1 CLI (lscm) and I have a file checked into a changeset that I would like to delete. There doesn't appear to be a straightforward way to do this, any idea?
I hate answering my own question, but I figured it out. Perhaps this will help others.
RTC really makes you think about source control in a different way than SVN, or even git. In order to delete a file from an RTC changeset, you just remove the file locally and checkin the directory.
$ rm myfile
$ cd ..
$ lscm checkin mydir
Undoing changes with the 'undo' command
$ lscm undo myfile
Here is a rosetta stone of sorts for the RTC CLI that clued me in:
Git v Subversion v RTC
From what I can see in the help page, there is also one workaround:
relocate a file from one change set to another.

Download project from URL

I was looking for downloading the example projects codes here: andengine
The question is: How can i download the folder hg to get the example projects?
Download mercurial (or TortoiseHG client) from here and execute in command line:
hg clone https://code.google.com/p/andengineexamples/