[opensuse-factory] New package: hg-fast-export
Holla! I realized I cannot feel comfortable with a mercurial as git user. It is supposed to be git-like distribute vcs, but the amount of differences is too much. Some of them are easy to handle git format-patch HEAD~ vs hg log -r tip > name.patch But sometimes it's very suprising for me. For example when I learned about a fact, that local branches are not supported by default http://mercurial.selenic.com/wiki/Branch http://mercurial.selenic.com/wiki/LocalBranches http://mercurial.selenic.com/wiki/LocalbranchExtension or you cannot easy delete your topic named branch you made and did not publish http://mercurial.selenic.com/wiki/PruningDeadBranches And that confusion exceeded my born lazyness. So behold devel:tools:scm/hg-fast-export which I already submitted into Factory (request 82210). I "stole" some usefull things like manual pages and git-hg script from Debian, so it's really simple to use git-hg clone <mercurial-repository-url> and continue by man git-hg. Hope it would be usefull for anyone else than me. Regards Michal Vyskocil
* Michal Vyskocil <mvyskocil@suse.cz> [2011-09-15 14:26]:
But sometimes it's very suprising for me. For example when I learned about a fact, that local branches are not supported by default
http://mercurial.selenic.com/wiki/Branch http://mercurial.selenic.com/wiki/LocalBranches http://mercurial.selenic.com/wiki/LocalbranchExtension
or you cannot easy delete your topic named branch you made and did not publish http://mercurial.selenic.com/wiki/PruningDeadBranches
It is possible to get similar behavior with stock Mercurial, you just don't use named branches for that since they're conceptually different from git's branches. With hg bookmarks you can probably get very close to a git-like workflow with short-lived feature branches. If a branch is very short-lived and you don't need to switch around you could even use an anonymous branch (i.e. by just comitting to a particular revision). A third alternative would be to use mq which allows for easy rebasing and editing of changes before turing them into permanent commits. -- Guido Berhoerster -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On Fri, Sep 16, 2011 at 10:45:09AM +0200, Guido Berhoerster wrote:
* Michal Vyskocil <mvyskocil@suse.cz> [2011-09-15 14:26]:
But sometimes it's very suprising for me. For example when I learned about a fact, that local branches are not supported by default
http://mercurial.selenic.com/wiki/Branch http://mercurial.selenic.com/wiki/LocalBranches http://mercurial.selenic.com/wiki/LocalbranchExtension
or you cannot easy delete your topic named branch you made and did not publish http://mercurial.selenic.com/wiki/PruningDeadBranches
It is possible to get similar behavior with stock Mercurial, you just don't use named branches for that since they're conceptually different from git's branches. With hg bookmarks you can probably get very close to a git-like workflow with short-lived feature branches. If a branch is very short-lived and you don't need to switch around you could even use an anonymous branch (i.e. by just comitting to a particular revision). A third alternative would be to use mq which allows for easy rebasing and editing of changes before turing them into permanent commits.
Hi Guido, that sounds what I wanted to have before - however now as I have all my mercurial repositories locally in git, I will stay in git as I'm much familiar with it. Regards Michal Vyskocil
participants (2)
-
Guido Berhoerster
-
Michal Vyskocil