This might be an extremely stupid question, but for the life of me, I cannot figure out how to download this:
http://code.google.com/p/xmppframework/source/browse/#hg%253Fstate%253Dclosed
There is nothing under the "downloads" tab. And when I try to "clone" it using my terminal it says "HG command not found".
Any ideas??
hg is the executable for Mercurial, you're going to need to download and install Mercurial.
Once you have it installed you can use it to clone the project:
hg clone https://xmppframework.googlecode.com/hg/ xmppframework
Related
I have managed to clone my repository locally via the TortoiseHG gui. What i would like to know is how to do this via the command prompt. In TortoiseHG's clone window, there is a Hg command line containing the following:
hg clone --verbose -- C:...\Mercurial Demo\Shared C:...\Mercurial Demo\Bob
Ive tried copying this into the command prompt but it doesnt work. It states the clone command should follow the following structure:
hg clone [OPTION]... SOURCE [DEST]
hg clone help wasnt any help either.
id appreciate it if someone could show me an example of how this should be done.
Thanks.
My overwhelming suspicion is that the path has spaces in it, so Mercurial is seeing far too many options. Try enclosing the paths in quotes.
I am new to Android and I want to downaload source code from this site:
http://code.google.com/p/apv/source/
of an Android PDF viewer. I know how to download source from SVN but I have no idea what hg clone is. Can any one tell me how can I download this open source project?
Download and install Mercurial.
You will have a command line client: hg. Now you can get any sourcecode via hg clone:
hg clone https://code.google.com/p/apv/
For a faster introduction to Mercurial, see http://hginit.com/.
When I try to download a project from Google Code using TortoiseHg I got the following message:
abort: 'svn' executable not found for subrepo 'mobile/ios/externals/google-toolbox-for-mac'
I am using this link google.code
EDIT: I am running Windows XP
The repository you're trying to clone as some Subrepository defined which are on a Subversion repository. The subrepository list can be seen in the .hgsub file.
In order for the clone to work, you will need to install Subversion on your computer. You can find packages for various platform here : http://subversion.apache.org/packages.html
The executable must also be in the path so Mercurial can use it. Since you didn't give much details about your environment, I can't help you with that, but I think the installation process should take care of this.
FYI, Mercurial also handles Git subrepository, so if you want to clone a project which make uses of them, you will also have to install Git.
I am a new guy in using Mercurial to maintain my code editions. My company's server is using SVN and I want to maintain my local repository, so I am commit into my Hg when I have a little change to my code. After testing my code carefully, then I can push back my code into SVN server.
I install TortoiseHg and I can clone other open source project to my computer. And I have HgSubversion plugin installed correctly.
Right now I can do the clone operation using following commands:
$ hg clone svn+https://XXXX:8443 test
But after the clone is finished, there is just a folder .hg under test folder.
Why this happen? How can I fix it?
Thanks
Water Lin
It might has some files which stored with non-ascii file name in repository. Mercurial can't treats non-ascii file name correctly so far. Have you tried to check out the log? You can do it with command "hg log" to make sure all files had been imported in to Mercurial. Then download and install the extention fixutf8. That can fix the problem. After you install fixutf8 you can update current working folder to tip reversion again.
I'm using "Mercurial Distributed SCM (version 1.1.2)" on my Ubuntu.
I'm new to mercurial, and just created a new project on sourceforge.net.
I added some code files, commited some changes, pulled & pushed.
I created some tags "0.1.1", "0.1.2" and "0.1.3" using "hg tag" and now I want to pack it all in a revision zip file.
A friend sent me a script that automatically picks a name and create the zip file using
hg parent --template "{node|short}\n{latesttag}\n{latesttagdistance}"
I executed this command but the {latesttag} & {latesttagdistance} doesn't seem to work. When I try:
hg log --template "{latesttag}{latesttagdistance}\n"
it just prints a bunch of empty lines.
Does anyone have any suggestions for why the templates don't work? Should I configure something in some hg configuration file? Does it have anything to do with the fact I don't use branches as I'm supposed to?
Any suggestions could help. I am new to mercurial so it's probably something basic that I don't understand.
Mercurial 1.1 is quite old. {latesttag} and {latesttagdistance} are only available since Mercurial 1.4. If you don't want to update Ubuntu (Ubuntu 10.10 comes with Mercurial 1.6), you can use a PPA repository.
If you have a Ubuntu-derivative, you can install the newest version from launchpad:
https://launchpad.net/~mercurial-ppa/+archive/releases