Tag: mercurial

Can Git or Mercurial be set to bypass the local repository and go straight to the central one?

Using Git or Mercurial, if the working directory is 1GB, then the local repository will be another 1GB (at least), residing normally in the same hard drive. And then when pushed to a central repository, there will be another 1GB. Can Git or Mercurial be set to use only a working directory and then a […]

lntelliJ IDEA EAP 12 and Bitbucket ( Git or Mercurial )

My Sytem setup is Windows 7 64-bit IntelliJ IDEA EAP 12 version 122.639 Java 1.6 I am a non Admin user. I have an android project which I want to keep under version control on Bitbucket. I have tried to use the builtin VCS in IntelliJ IDEA to create git/mercurial but for both of them […]

What does hg bookmark mean in this context?

I am reading through Chris’s excellent article about working with git and pushing to BitBucket. With the instructions presented there, I managed to get everything working. However, I would like to understand what happens there. I’m specifically interested in this line: hg bookmark hg/default -r default I understand that this creates a bookmark named hg/default, […]

Bitbucket authentication to use LibGit2Sharp

I used the CSharp.Bitbucket library to authenticate users with Bitbucket (https://github.com/scottksmith95/CSharp.Bitbucket). The authentication works fine, I get the token value and token secret values. I have alredy written a logic – with the help of LibGit2Sharp (https://github.com/libgit2/libgit2sharp) – to clone/pull/push the content of the users repo. It works fine if the user authenticates with GitHub. […]

Mercurial branching and merging without having to push branch

Here is what I’m trying to do: hg clone http://www.my_repo.com hg branch new_branch hg update new_branch # move to new branch do some changes in branch code hg commit -m ‘changes in branch new_branch’ hg update default # move back to default branch hg merge new_branch # merge new_branch into default to have changes added […]

Feature branches in mercurial

I noticed a problem: In Mercurial bookmarks are intended to be used for feature-branches and be the equivalent of branches in Git. But In Git revision is always has an information about to which branch it belongs. So in Git we are always can say when work on feature is started and when – finished. […]

Is it possible to remove old commits in Git without losing data?

This question already has an answer here: Remove an old Git commit from a branch without using a reverse patch? [duplicate] 2 answers

git submodule add failed with bitbucket repo

I’m trying to add a repo as a submodule for my project as it will depend on it. The project is hosted on bitbucket, and when I tried to add it using this: git submodule add https://bitbucket.org/blueluna/transmissionrpc, I got the following: Cloning into ‘transmissionrpc’… fatal: repository ‘https://bitbucket.org/blueluna/transmissionrpc/’ not found Clone of ‘https://bitbucket.org/blueluna/transmissionrpc’ into submodule path […]

How to do the equivalent of git checkout <commit> in mercurial with subrepositories?

According to Mercurial GitConcepts the equivalent of git reset –hard is hg revert -a –no-backup. After doing that I expect the equivalent of git checkout <commit> which is hg update -c <cset> to work. However it fails with error abort: uncommitted changes in subrepository ‘subrepo/subsubrepo’ even after running hg revert -a –no-backup in subrepo/subsubrepo and […]

Is there an hg equivalent to git-info?

I have git-info which is part of git-extras. I am actually looking to know the remote repository URL – ┌─[shirish@debian] – [~/games/libcpuid] – [10328] └─[$] git-info ## Remote URLs: origin https://github.com/anrieff/libcpuid (fetch) origin https://github.com/anrieff/libcpuid (push) ## Remote Branches: origin/HEAD -> origin/master origin/master ## Local Branches: * master ## Most Recent Commit: commit fa87a5e183a3809ded89ecb3efde4e94837c5736 Author: Veselin […]

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