Tag: mercurial

What's the Mercurial equivalent for git hash-object and how do I get the hash of a certain commit?

If I run git hash-object on a file, I can get it’s SHA, and if I look around with ls-tree I can see what signature an object had at a certain revision. If I do three commits with Mercurial, of a file, can I see what hash the object had at the 2nd commit? Can […]

Refactor during a feature implementation with mercurial

I need advice on my development process with mercurial when working on legacy code. When I’m developing a new feature for a legacy project, I often need to refactor a part of the existing code during a feature implementation. I mean, I didn’t anticipated the refactoring and I need to do it before proceeding to […]

Equivalent to git clean -xfd ; git reset –hard in Mercurial?

My usual workflow to update my self-compiled software is git clean -xfd git reset –hard git pull ./configure # … What would be the equivalent for clean -xfd and reset –hard in Mercurial?

How can I move all my modification to a branch

I create a working repository in HG. And I have modified some files. How can i move my all my modification to a branch (a branch that I have not created)? (kind of ‘git stash’ and the move the stash away change to a branch. Actually, I am not sure how I can do that […]

How do you manage your ignores?

In order to stop writing my .hgignore for every new repository; I decided to create a separate repository for my hgignores which currently looks like: hgignores ├── cpp ├── eclipse ├── intellij ├── java ├── latex ├── linux ├── netbeans ├── osx ├── python └── textmate Now for each repository, I am pasting the relevant […]

Does git force you to pull changes to the tip? Does your push include those files?

With Mercurial, if you try and push and there were commits made to the main repo, you are forced to pull and merge. The problem is, when you go to commit your changes, the changeset you push contains files that you were forced to merge. You didn’t touch these files, yet the history shows you […]

Is anyone use Activecollab with Git or Hg?

We currently use activecollab with subversion, but we want to consider using Git or Hg to give us distributed source control. Is anyone making this work, so that revisions can be linked to tickets in activecollab, just as they are for SVN?

Is there a single server I can use to store/manage version control for SVN/Git/Hg/etc?

Is there a single server I can use to store/manage repositories which could then be accessed by the common/modern open-source (D)VCSs such as SVN, Git, Mercurial, bzr, etc and still keep a good level of compatibility with all of them? We have a large number of users on SVN, some on Git, and a couple […]

Forbidding pushes on Git/Mercurial

Is there any plugin for distributed SCMs that forbids pushing code that doesn’t fulfil a certain criteria (e.g. min test coverage)?

HG: Match remote repo's changesets

I’m moving to HG from Git and having a hard time with some of the restrictions HG is imposing on me: I am in a situation where I have some erroneous commits that I want to blow away. In fact, It would be really nice if I could just match the remote repo’s history. With […]

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