Tag: mercurial

Identify a URL as referring to a git or hg repository

I’m developing a build tool which can import dependencies from various other locations. I want to support importing svn, git, and mercurial repositories by specifying the URL for the repository. Ideally, I want to be able to automatically identify what kind of repository an URL refers to by inspecting the response from the server. For […]

Use hg commands to operate git and hg simultaneously

I have a mercurial repository and a git repository. Both are using the same code and same change-sets. When I make any changes to my hg repository, commit it and push it to hg repository, the same changes should get pushed to the git repository also. Is this possible? How?

Git equivalent of Mercurial phases?

In mercurial, I regularly use secret changesets to track my work on stuff that isn’t quite ready to push yet. Then, if I need to make an emergency change to some file, I can update to the public revision, make that change and push it, without having to worry about my unfinished changesets getting pushed. […]

Which version control software allows to whitelist dirs?

I want to whitelist a couple of directories and a file: /app /config /db Gemfile A go-to version control, git, does not allow to track a directory: # .gitignore: * # ignore all: suppose I prefer whitelisting # but not the following things: !/app/* !/config/* !/db/* !Gemfile Doesn’t work: git only sees Gemfile. Do you […]

Use Git “locally” over SSH

our company wants to switch from svn to git/hg. Our current environment is: Windows-Dev-Machines Remote Linux Server (via 1 Gbit LAN) Samba Share on Server, mapped in Windows We don’t want to work locally, because of backups (serverside) and running VMs on localhost etc (PHP-Webserver). So I can clone from Server via SSH into the […]

After converting repository from hg to git, how to migrate additional changesets?

After using fast-export to migrate a mercurial repository to git, I’ve found that open named branches that weren’t merged to default weren’t converted. Now I want to import the outstanding changesets on these branches to the new git repos. I’ve tried various approaches including hg-git and hg export, but the problem with these approaches is […]

Is there a way in a VCS to have a child branch that only syncs a few specific folders/files from the parent?

Lets say I have repository for a project that has a bunch of folders and files lets call it master. /3rdPartyJars /compass /js /deploy /js /python build.xml When I deploy to the production server I just want to push the latest deploy and python folders to the server. Previously I was using svn1.7 and I […]

Repair links between moved files in Mercurial

Over the course of having this repo (originally SVN) I’ve not been to good with keeping file links together. I’ve changed IDE’s twice, split the project into Netbeans modules, and mavenized the project over its time. Most of the file history is lost, mainly because during mavenizing I deleted the entire trunk, committed, copied over […]

Is it true in Mercurial (hg), the same as Git, that a revision you committed may only have code not modified by you? (a merge)

Seems like in SVN, when you do a merge, there won’t be a revision checked in by you. All your “commits” should only have code that is changed by you. But in Mercurial, that’s not the case. Your “merge” commits are committed by you, but they usually contain changes that are made by other people. […]

Mercurial alternative to the following git log command

I wonder if there’s a compatible alternative to the following git log command in Mercurial: git log –pretty=oneline –parents –name-only –reverse Thanks.

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