Tag: mercurial

hg clone git:… aborts: failing connection?

When trying to clone a git repository using Mercurial over hg-git: hg clone git://github.com/rails/rails.git destination directory: rails importing Hg objects into Git abort: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond It fails, but why? […]

How to list every file for every revision in Git (like Mercurial's hg manifest –all)?

Mercurial has a command to list every file that the repository has for every revision: hg manifest –all Is there an equivalent command in Git? I know about git ls-files, but it only list files from the index (the current revision).

Git or Hg bridge to SVN

What are reasons to not use a git-svn bridge or an hgsubversion bridge? What are some blatant problems with using a bridge as opposed to fully switching to Git or Mercurial? I assume the bridge will still be plagued by the slow SVN speeds right? Thank you.

how to embed DVCS revision information when building without it

In my build system, every time I run a new build I save revision and hash information of the current commit in a few variables, and use them in my sources without issues. For example the window title is formatted like “NAME-REVISION-HASH”. The only problem of this is that sometimes people build the project by […]

Is it possible to use a private git(hub) repo in Dockerfile ADD?

There are plenty of questions about cloning a git repo into a container by installing git and then cloning stuff. What I’m interested in doing is something more like this, where they use a GitHub URL in the ADD command. Obviously that’s just a public URL, though. Is it possible to use something like git […]

What is the git equivalent of hg summary?

What is the git equivalent of ‘hg summary’? Especially ‘hg summary –remote’ ?? I’ve seen translations for ‘hg in’, ‘hg out’, and a bunch of other translated commands, but I never see ‘summary’. I’m lazy and want to know everything ‘hg summary –remote’ would tell me in one simple command. Will I have to write […]

How to add a branch, created on a forked repo, to the upstream repo?

I was migrating my hotfix branch from Mercurial to Git. I used the hg-git plugin to import my hotfix branch into a new branch on my forked repo of my git project. Is there a way to add the newly created branch to the upstream repo? The branch does not currently exist on the upstream […]

How can I automatically add a datestamp field to a java class marking a commit date

I can’t figure out a nice, succinct title for this question, so bear with me! My overall goal is to have a variable in my source code which give the date, time, (and possibly commit id) of a class so that when exceptions get caught, I could output the error along with that said variable […]

Hg equivalent to git post-receive hook

I need the equivalent of git post-receive hook in Mercurial so I can notify another service that a push has been done to the repository. What I need in my hook is simple: changeset revision of the last changeset. Of course I understand that the difference with git is that the ref won’t be named, […]

What SCM to use to keep track of application and system configuration files?

I need to keep track of different software installation, ease the upgrade of the files. I’m planning to use a SCM to keep track of the modification and be able to roll-back rapidly if needed, or to ease the migration to a new machine. Initially I tried to use Mercurial (hg) but I discovered that […]

Git Baby is a git and github fan, let's start git clone.