Advocacy vs. git

Colin Caughie c.caughie at indigovision.com
Fri Apr 24 15:27:18 CDT 2009


> What about the rebase extension?
> http://www.selenic.com/mercurial/wiki/index.cgi/RebaseExtension
>
> It's my contention that rebase is like goto: useful for the few cases
> where you need the raw power, dangerous when used for common cases. But
> I could be wrong. I've explored the rebase extension a bit, but haven't
> found a use for it yet.
>
> Do others use the rebase extension in daily work? What's the advantage?

It's way simpler for a start. There's no need to plan ahead and initialize your queue before you start working, and you can wait until you're ready to push to decide whether to rebase or merge. Either way it's only one simple command, there's no need to pop all your changes, pull and then apply them again.

As far as I know there's nothing particularly dangerous about a rebase either, or at least nothing that is not also true of mq. The worst that could happen (e.g. if your original development branch got cloned or pushed before you did the rebase) is that you end up with an extra head, in which case you'd just merge and all would be fine.

But then I haven't been using Mercurial for long, so please correct me if I'm wrong about any of this...

Colin


Latest News at: http://www.indigovision.com/news2009.php



More information about the Mercurial mailing list