Slashdot Mirror


GNU Emacs Switches From CVS To Bazaar

kfogel writes "GNU Emacs, one of the oldest continuously developed free software projects around, has switched from CVS to Bazaar. Emacs's first recorded version-control commits date from August, 1985. Eight years later, in 1993, it moved to CVS. Sixteen years later, it is switching to Bazaar, its first time in a decentralized version control system. If this pattern holds, GNU Emacs will be in Bazaar for at least thirty-two years ..."

55 of 198 comments (clear)

  1. Why 32? by hezekiah957 · · Score: 5, Insightful

    24 is plausible, too; an arithmetic not geometric progression.

    1. Re:Why 32? by Anonymous Coward · · Score: 5, Funny

      I reckon after two years they'll get bored and switch to keeping commits in directories named gnuemacs.20120415, gnuemacs.working, gnuemacs.old-dontdelete, etc.

    2. Re:Why 32? by EvanED · · Score: 4, Funny

      Is there a 'scary' mod? I don't see it in my list unfortunately.

    3. Re:Why 32? by Architect_sasyr · · Score: 2, Funny

      By that token we have funny-strange and funny-hilarious. Since when did anyone on slashdot fail to be ambiguous?!

      --
      Me failed English...
      FreeBSD over Linux. If my comments seem odd, this may explain...
    4. Re:Why 32? by fuzzyfuzzyfungus · · Score: 4, Funny

      Don't be silly. This isn't some spartan text editor like vi.

      Future emacs development will be hosted inside emacs, with a version control extension written in emacs lisp.

    5. Re:Why 32? by Arancaytar · · Score: 4, Funny

      spartan text editor

      THIS! IS! EMACS!

    6. Re:Why 32? by Kynde · · Score: 2, Insightful

      24 is plausible, too; an arithmetic not geometric progression.

      I'm so sorry, but you are utterly wrong.
      24 would perhaps be plausible in carpentry or equestrian, or if the numbers were 7 and 14, but in this case, i.e. with software, powers of two and slashdot, there are simply two and only two possible successions to that and those are indeed the 0x20 and some-funky-number-with-cowboyneal-embedded. And that's final. Move along, move along.

      --
      1 Earth is warming, 2 It's us, 3 it's royally bad, 4 we need to take action NOW
    7. Re:Why 32? by Ginger+Unicorn · · Score: 2, Funny
      --
      (1.21 gigawatts) / (88 miles per hour) = 30 757 874 newtons
    8. Re:Why 32? by mpeskett · · Score: 3, Insightful

      Let's not forget insightful-popular, insightful-contrarian and insightful-'said they expect to be downmodded'

  2. first first? by Tumbleweed · · Score: 5, Funny

    You'd think there'd be an emacs keystroke combo to check for duplicate words in a block of text.

    1. Re:first first? by melikamp · · Score: 5, Insightful

      (defun search-dupe-words ()
      "Search for word dupes"
      (interactive)
      (search-forward-regexp "[^a-z]\\([a-z]+\\) \\1[^a-z]"))

      (global-set-key (kbd "<f7>") 'search-dupe-words)

    2. Re:first first? by thestuckmud · · Score: 3, Insightful
      This `\<\(\w+\) \1\>' regexp matches identical word pairs using word related capabilities built into emacs' regexps (and relative to the local syntax table).

      For OP: The key sequence you are looking for is:
      <C-M\>s\<\(\w+\) \1\>

    3. Re:first first? by moosesocks · · Score: 2, Insightful

      The key sequence you are looking for is:

      <C-M\>s\<\(\w+\) \1\>

      And they say Unix isn't user-friendly!

      --
      -- If you try to fail and succeed, which have you done? - Uli's moose
  3. ObSimpsons by StarDrifter · · Score: 5, Funny

    If this pattern holds, GNU Emacs will be in Bazaar for at least thirty-two years ...

    Disco Stu: Did you know that disco record sales were up 400% for the year ending 1976? If these trends continue... A-y-y-y!

    1. Re:ObSimpsons by jisatsusha · · Score: 3, Funny

      Even better: http://xkcd.com/605/

    2. Re:ObSimpsons by Per+Wigren · · Score: 2, Informative

      Even better: http://xkcd.com/612/

      --
      My other account has a 3-digit UID.
  4. News? by TheKidWho · · Score: 2, Funny

    So some young whippersnappers decide to change things around and this is news?

    Get off my lawn!

  5. Cathedral & the Bazaar? Irony? by tchuladdiass · · Score: 4, Funny

    Wasn't Emacs used as an example of a "Cathedral" project in Raymond's paper?

    1. Re:Cathedral & the Bazaar? Irony? by kfogel · · Score: 3, Interesting

      I can't remember if it was in the paper offhand, but in any case Emacs development is not really very cathedral-y.

      --
      http://www.red-bean.com/kfogel
    2. Re:Cathedral & the Bazaar? Irony? by FlyingBishop · · Score: 4, Interesting

      It used to be. It since opened up in reaction to Raymond's paper. The power of words...

    3. Re:Cathedral & the Bazaar? Irony? by jrumney · · Score: 4, Informative

      At the time of Eric Raymond's paper, Emacs development was of the Cathedral style, but that changed with the switch from RCS to CVS and the closed emacs-hackers mailing list to emacs-devel. Compared with other major GNU projects, this switch came quite late, around 1998 (not 1993 as stated in the summary).

    4. Re:Cathedral & the Bazaar? Irony? by CAIMLAS · · Score: 3, Funny

      Oy, too much more of this, and we'll be setting ourselves up for a paradox.

      You've got GNU/Emacs which is the operating system of its own, but runs on the GNU/Linux operating system as well. And it runs on the free proprietary OS. And Emacs is also in bazaar, even though it's based on the cathedral model. But its owner is very, very fond of bazaar (and bizarre, but that's neither there nor certainly here) development, despite not using it, while also using it.

      Basically, we're looking at Emacs as a self-contradiction as things stand. Too much more of this and it's going to just go *poof*.

      --
      ~/ssh slashdot.org ssh: connect to host slashdot.org port 22: too many beers
    5. Re:Cathedral & the Bazaar? Irony? by Michael+Meissner · · Score: 3, Informative

      In the 1.xx days it was a classic cathedral project until the EGCS/GCC split. In the real old days (1988-ish) you logged on to the central server and edited the files there, using emacs version mode, with the number of versions set rather high. You had to register the IP address that you would be ftp'ing the sources from, and the threat was if you were passing along pre-release versions of the source outside the clique then you would have your access denied. It was a different time....

  6. Re:Wow, what quality... by EvanED · · Score: 5, Informative

    I don't know where you live, but in American English, the singular possessive of a noun ending in s can either have just ' or 's appended. See Wikipedia. (In particular, that article makes it sound like the Chicago Manual of Style recognizes both forms as valid.)

  7. The other kewl thing by kurt555gs · · Score: 2, Funny

    Is, the code for EMACS is written in vi.

    --
    * Carthago Delenda Est *
    1. Re:The other kewl thing by palegray.net · · Score: 2, Funny

      I though it was done in pico, then shifted to nano, and edited later in TextMate...

  8. Emacs is in Bazaar by Anonymous Coward · · Score: 5, Funny

    I'm waiting for someone to write a Bazaar server that runs inside Emacs. Will Emacs then update itself and become self-aware? That ought to put the Emacs vs. VI debate to rest once and for all.

    1. Re:Emacs is in Bazaar by DMUTPeregrine · · Score: 2, Insightful

      ED is the standard text editor!

      --
      Not a sentence!
  9. Re:32 years? by kfogel · · Score: 3, Insightful

    I've used both and don't agree. Bazaar's quite good. Not that there's anything wrong with git, either. At this point in their development, I think the old rule is starting to apply: "the smaller the differences, the louder the arguments".

    --
    http://www.red-bean.com/kfogel
  10. Re:Wow, what quality... by kfogel · · Score: 3, Funny

    It's a matter of long debate among grammarians, and I take other grammarians's point of view :-).

    --
    http://www.red-bean.com/kfogel
  11. Re:32 years? by TheLink · · Score: 2

    So far what are the technical disadvantages to using Bazaar instead of git or something else?

    --
  12. Re:32 years? by icebraining · · Score: 5, Informative

    Speed in repositories with very large history (> 10000 commits) and in network operations, but the difference is not large. As for features, they're pretty much tied:
    http://versioncontrolblog.com/comparison/Bazaar/Git/index.html

  13. what's new?; bazaar versus git by bcrowell · · Score: 4, Interesting

    I started using emacs about 7 years ago, at which point the jokes about its feature creep ("nice OS, just needs a good editor," etc.) were already probably 20 years old. A few years ago I switched to mg, which is an emacs clone that is much more lightweight. The advantage of mg is that it loads immediately, and it has all the features I actually need. So maybe I'm just a curmudgeon, but -- what is currently happening in emacs development? New features? Better performance? Bug fixes? Polishing the brasswork? I'm honestly curious why it can't just go into the same kind of masterpiece-maintenance mode as some of Knuth's projects like Tex.

    As far as bazaar, my impression is that it has had a much lower profile than git, and that its main selling point seems to be that it's supposed to be easier to use than git. Here is bazaar's explanation of why they think bazaar is good. Here is a similar sales job for git. Bazaar is used by ubuntu, sponsored by Canonical, and written in Python. You can get free bazaar-based hosting on Launchpad. Personally I've been happy with git.

    1. Re:what's new?; bazaar versus git by melikamp · · Score: 3, Informative

      Two recent features in the stable release are antialiased fonts and the daemon mode (speeds up invocation, but useless for those who never quit and use Emacs for everything). I am a big fan and I cannot stand using anything else when I am coding (C++, Common Lisp, Bash, HTML, LaTeX) or editing plain text (my favorite text format). I love the default integration with gcc and make, and the fact that my ~/.emacs has clever LaTeX bindings, but the main selling point for me is the (fully justified) feeling of total control. I like knowing that I can easily extend the functionality and/or disable any feature I don't like.

    2. Re:what's new?; bazaar versus git by Anonymous Coward · · Score: 3, Interesting

      So maybe I'm just a curmudgeon, but -- what is currently happening in emacs development? New features? Better performance? Bug fixes? Polishing the brasswork? I'm honestly curious why it can't just go into the same kind of masterpiece-maintenance mode as some of Knuth's projects like Tex.

      Check out org-mode. It's a fantastical set of code for managing things in emacs. It takes a bit of setting up, but it's very powerful and awesome. It's now included standard in emacs.

    3. Re:what's new?; bazaar versus git by Hurricane78 · · Score: 4, Insightful

      As Linus explained, the “easier” argument is gone, since they did put really hard work into git’s user interface. They knew that it was bad. And what was the normal interface back then, is now the low-level interface, with a whole new, nice interface on top. (But you can still use the low-level one, when you need it.)

      Anyway, maybe it’s me, but I don’t see “easy” per se as a advantage. I prefer efficiency. And more often than I like it, easiness seems to mean less efficiency.
      It’s like “Those who give up some efficiency for a little easiness, deserve neither”. ^^
      Of course the same is true for too (pointlessly) complicated interfaces too. (Main examples: Emacs and VI.)

      The problem is, that most programmers seem to see that level of complexity as static. But it has to adapt to the user, over time. Rise when in need, fall when not. Stepless, if possible.
      Instead they think in absolute, black and white, one-dimensional spaces: Either Notepad with Clippy, or Emacs/VM.
      It’s so stupid.

      To me, git is a tool that is pretty nice in that aspect.
      Simple committing and version management for yourself is very easy.
      But if you want to do crazy stuff, like go back 10 versions, patch that one with eight other forks, wrap it, and the next five versions, into one version, and put that thing not only back into your repository, but into that of others too... then it doesn’t leave you in the rain, but gives you the tools to do it.

      --
      Any sufficiently advanced intelligence is indistinguishable from stupidity.
    4. Re:what's new?; bazaar versus git by i.of.the.storm · · Score: 2, Informative

      Whybzrisbetterthanx It used to by whybzrisbetterthanx.com, but I guess that domain expired. (I don't necessarily espouse the views of the site, I just find it funny).

      --
      All your base are belong to Wii.
    5. Re:what's new?; bazaar versus git by JanneM · · Score: 4, Insightful

      "Anyway, maybe it's me, but I don't see "easy" per se as a advantage. I prefer efficiency. And more often than I like it, easiness seems to mean less efficiency."

      And sometimes it means more.

      The main issue with the interfaces to systems like emacs, or LaTeX or git (the old one; the current interface is not bad) is that they are only really efficient if you use the tools all the time. If you use emacs all day, every day then the interface is probably fine. I constantly use LaTeX and so it's really much more effective for me than a graphical typesetting-type application. If all your software lives in git repos and you work with them most days of the week then it soon becomes second nature.

      But many people don't use their tools every day. I'd say that every single one of us have some tools that we do use and do like, but we simply don't need them every day or even every week. And when you're an occasional user, no matter how "power" you are, the kind of cryptic interfaces these tools have become a hindrance, not a help. The UI is not discoverable - it's not clear how to do things you may want - so when you don't use it all the time you forget how to do even simple, common tasks.

      You end up spending your time searching the web or grep:ing your own shell history to remind yourself how you do stuff, and the efficiency goes straight out the window.

      "So use it more often" isn't an answer. These are tools, not something you use just for their own sake. If you don't need to, say, write a report more than once every three months then you're certainly not going to create the occasional bogus document just so you don't forget how to do things in LaTeX.

      So depending on the task, more than on the user, these interfaces can be a help or a major hindrance.

      --
      Trust the Computer. The Computer is your friend.
  14. Hah! by Anonymous Coward · · Score: 3, Funny

    It will be too late! --vi

  15. Re:32 years? by SanityInAnarchy · · Score: 5, Informative

    crappy windows support

    I'll give you that. Still, it does have Windows support, and all the cool kids are on unices these days -- even Macs.

    too many commands, too many options,

    Dude, you're a programmer. If you can't learn to use a meaningful subset and ignore the rest, you're in the wrong field.

    Yes, there are a crapton of commands, but because the data model is so simple, once you get it, it's easy to understand what each command actually does just by reading its description.

    Silly need for repository maintenance, ala git-gc;

    Which bzr does automatically every few revisions whether you want to or not. I'm sure someone could hack a script around that if you're too lazy -- check the gc.auto config variable. In my experience, it's needed rarely enough that it's not hard to remember, and it's nice in case you screw up a repository to know that, in theory, every single commit is still there until you run 'git gc'.

    incomplete, unclear documentation.

    When did you last check? I found excellent documentation at git-scm.org. What's missing?

    You can very easily shoot yourself in the foot with git, and accidentally destroy important history info (eg git-push --force),

    You pretty much deserve what you get, there -- it's like 'rm -rf'. Any time you use --force isn't "easily", it's the fact that you didn't read the GIANT WARNING around the option. From the docs:

    Usually, the command refuses to update a remote ref that is not an
                          ancestor of the local ref used to overwrite it. This flag disables the
                          check. This can cause the remote repository to lose commits; use it
                          with care.

    I hate to say it, but RTFM.

    Note also that this is again why 'git gc' exists. git-push may cause the remove repository to lose commits -- but not necessarily, and anything that hasn't been cleaned by 'git gc' can be recovered, likely with its entire tree intact.

    And finally, assuming you're git-pushing to a remote repository that other people already have copies of, chances are someone will have that history. That's the beauty of a DVCS in the first place.

    I will admit this:

    Mercurial is a lot closer to CVS/SVN in terminology, much easier for developers to adapt to.

    I thought so, too. I also thought that about bzr. I avoided Git for awhile, until I realized that all the projects I wanted to contribute to were on Github, so I forced myself to learn it.

    I think the investment is well worth it.

    VCS should be simple,

    To a point. Think about it this way: As a programmer, your VCS is your most important tool. More important than your language, more important than your editor. You owe it to yourself to know it inside and out.

    And as I said, the Git data model is simple -- ridiculously simple, back-of-an-envelope-from-memory simple. It's the tools that add features, and make it either harder or easier to use -- and I'd argue this is true of all good systems. Your filesystem is absurdly simple -- a hierarchy of directories (which can hold named references to other directories or files), and files (dumb streams of bytes). HTTP is incredibly simple, but use it properly (REST) and it's a powerful remote API.

    Off the top of my hand, a Git feature for which I don't know a Mercurial equivalent -- git-cherry-pick. Want to rewrite history a bit? Create a new branch from sometime before the commits you want to change, then cherry-pick (point-and-click simple in gitk) the commits you want, in the order you want, ignoring the ones you don't. When you're ready, clobber master with your new branch.

    I mean, quilt (hg mq) is cool and all, but how easy is it to rewrite history if you weren't in a quilt to begin with?

    --
    Don't thank God, thank a doctor!
  16. Re:32 years? by SanityInAnarchy · · Score: 4, Informative

    The difference is not large until you realize that just about anything you want to do is going to take under a second, including merges. The only place I've started to see slowdown with Git is Webkit, with 40,000 commits.

    That's an important threshold. That's the difference between "I'll do it later" and instantly, almost unconsciously committing or merging. And that's good -- this is version control, you can always undo it, but you can't undo what you put off committing.

    I know when I was working on a large svn project, some people put off committing (or pulling) for days because they didn't want to deal with the conflicts, branching and merging was a hassle (so, same problem), and if they made the effort to stay up-to-date (so conflicts would be small, infrequent, and manageable), it was too slow. And that was with only a few thousand revisions.

    I think I just fell into this trap, though:

    "the smaller the differences, the louder the arguments"

    Victory #1: You're using version control!
    Victory #2: You're using something distributed!

    Beyond that, it's a matter of taste. I think Git is far and away the best, but the gap between git, bzr, hg, darcs, anything, is still far less than the difference between any of them and svn or cvs.

    --
    Don't thank God, thank a doctor!
  17. What Does It Need? by Greyfox · · Score: 4, Interesting
    Emacs is Perfect...

    Well not entirely perfect, but I have yet to find a better editor for editing code. I keep my resume as a big lisp data structure which Emacs can use to emit into any markup language I care to write an emitter for (Currently HTML and plain text, but I've been pondering writing a LaTeX one as well.)

    What I'd like to see in Emacs:

    • Threading. Currently everything runs in one big thread, so if you try to do too much processing with elisp the entire editor hangs up. There was a push a while back to replace elisp with Scheme, which would solve this handily, but that effort sort of petered out.
    • Better integration with GUI applications. I want to use Emacs for my editor boxes in Firefox, notably.
    • A better mail client, or better integration with a GUI mail client. Emacs together with Remembrance makes for an awesome mail combo, but every time I've tried to do Email in Emacs, it's been a huge effort to keep it going.

    Ultimately it would be nifty if Emacs could work as well with the GUI components on my desktop as it can with text mode UNIX applications, but I suppose that might be asking too much of it.

    --

    I'm trying to teach myself to set people on fire with my mind... Is it hot in here?

    1. Re:What Does It Need? by tyroneking · · Score: 2, Interesting

      Have you thought of re-booting your Emacs addiction?

      gVim was perfect - I used to write all of my documents in restructured text (gVim addon or rst2pdf to get PDFs) and all my emails with Mutt and Pine.

      One day I switched to Freemind and Open Office for documents and Gmail for email ... so terribly un-geek like, but so much easier.

      Never looked back.

      You should give it a try.

    2. Re:What Does It Need? by tyroneking · · Score: 2, Interesting

      I regret nothing ;) the speed and agility one gains from 'light' but imperfect solutions is far better than the effort required to do anything else.

      Plain text is best of course, but binary formats are easier for dimwit colleagues to understand - and I get paid quicker that way too. We both have problems diff'ing between binary formats so most of the time they don't bother and neither do I - no loss really because most documents have a very limited lifetime (especially when you use LiveLink :). It's kind of a devil's pact - I promise to write documents in MS Word if you promise never to ask me to figure out the history of changes or keep older versions.

      Email is the same story really- I never really searched through past email, but I did lose archives during sync operations and missed having access to email when at the office. Gmail wins this battle every time. Another devil's pact - I promise to reply to emails quickly wherever I am if you promise never to ask me to remember what we talked about.

      It sounds a bit lackadaisical - and it is - because life's really like that - and in the real world of the idiots no one even backs up their computers - so we are already on to a winner! And in the real world it's always better to have an immediate if imperfect (but rosier) recall of past events than it is to say 'yeah, well let me just go and grep that for you' because not only does that sound dorky, but no one will thank you for remembering the truth (not if you want to be president that is :)

      OK, so when it gets serious, i.e. when I start coding (because emails, documents, spreadsheets are just the pointless stuff that stops me from coding) then it's plain text, Python and Mercurial SCM every single time. No argument. Colleagues can't understand how Mercurial works? Then I tell them to find another job. Another devil's pact ... let me use my own tools and I will write good software for you.

      Basically, aside from coding work, life's too short to worry about retracing your steps --- it's much easier (and rosier) to try and remember what you 'think' happened and go from there.

      One past client had a rule that all email was auto-deleted after two months ... sound horrific, but boy did it stop all the 'you said' 'he said' arguments... (also, stopped any horrible litigation :)

      The killer app in all these years, as I transition from thinking like a coder to thinking like a mild alcoholic, has been Freemind, which helps me organise my thoughts and tasks but is practically useless for keeping a history of changes (ok, so it does, but the whole 'history' keeping doesn't work in mind maps). The thing about Freemind is that keeping information in a mind map somehow etches that same information in your brain - so I can remember almost exactly what's in my Freemind project map.

      So, in summary, drink vodka...

    3. Re:What Does It Need? by tapanitarvainen · · Score: 2, Informative

      I want to use Emacs for my editor boxes in Firefox, notably.

      I am doing that right now, via "It's All Text" -plugin to Firefox. The most important FF add-on after Adblock+, IMHO.

  18. Re:32 years? by shentino · · Score: 2, Interesting

    You should see how much of a fuss it's making with the ubuntu mailing lists.

    At any rate, bazaar is politically entrenched because it's the only officially supported RCS and it's backed by the corporate might of canonical.

    I'm not aware of any particular merits or demerits of either system.

  19. non-joke versions of the last two by Trepidity · · Score: 4, Informative
  20. Re:EMACS discovers "distributed development" by Vintermann · · Score: 2, Insightful

    bzr has been sponsored by canonical for ages. It grew out of Tom Lord's Arch project, which was the first serious attempt at an open source distributed VCS.

    --
    xkcd is not in the sudoers file. This incident will be reported.
  21. Re:32 years? by Dwonis · · Score: 4, Informative

    I lost data as a result of bzr not supporting history rewriting. As far as I can tell, it's still not supported.

    I have never lost data that has been committed to a git repository, even though my build of git-svn occasionally segfaults on me.

  22. Re:32 years? by Dwonis · · Score: 3, Informative

    Silly need for repository maintenance, ala git-gc

    Git does this for you automatically.

    and accidentally destroy important history info (eg git-push --force)

    This is disabled in shared respositories by default, and you can run "git config receive.denyNonFastForwards true" in non-shared repositories if you somehow think you'll "accidentally" use --force even though you know better.

    VCS should be simple

    Git provides a very simple data structure (it's just a directed acyclic graph of commits), and a comprehensive and mature set of tools for manipulating this structure. Sure, there's a learning curve, but really it's easier to learn than, say, Ruby, and once that's done git stays out of your way and does a great job of helping you manage your changes.

  23. Re:Why not git? by Anonymous Coward · · Score: 2, Insightful

    Why use Git over Bazaar?

  24. How bazaar! by Dachannien · · Score: 2, Funny

    If this pattern holds, GNU Emacs will be in Bazaar for at least thirty-two years.

    I'm pretty sure Emacs has already been bizarre for at least 32 years.

  25. Re:32 years? by gmack · · Score: 3, Insightful

    Git is written in C by people with experience doing complicated things very quickly(kernel programmers).

    Bazaar is written in python.

  26. Re:Why not git? by Sir_Lewk · · Score: 3, Informative
    --
    "linux is just DOS with a UNIX like syntax" -- Galactic Dominator (944134)
  27. Re:32 years? by mzs · · Score: 2, Insightful

    Somebody mod that up. That is an awesome rant of the best sort, one with experience, opinions, technical details, and examples.