Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm new to Linux (which I'm setting up to start teaching myself web development). I am installing Vim, and in order to do so installed Mercurial.

hg clone vim seemed to work fine, but when I try to update to the newest version using hg pull and hg update I get this after hg pull:

abort: no repository found in '/home/steven' (.hg not found)!

Am I doing something wrong?

Some details on my setup: Dual boot computer with Windows on one SSD harddrive and Linux on a separate optical drive. Ubuntu 12.04

share|improve this question

(I've posted the same answer on the same question over at SO)

  1. You don't need Linux to learn Web dev: Windows and Mac OS X are equally fine.

  2. You don't need to install Vim from the sources (and thus Mercurial) because it's already on your machine:

    1. summon the "Dash"

    2. type ter

    3. open Terminal

    4. type vim at the prompt and press <Enter>

    This CLI version of Vim is probably a "tiny" build which is going to lack a few useful features.

    A much proper Vim with a GUI frontend and more features is available through Ubuntu's package management system. To install it, you only need to launch Ubuntu Software Center, search for "gvim" and install it. This should be enough.

    If you need more control on the installation, you can install a second package manager called Synaptic which is less sexy than Software Center but a lot more detailed. In Synaptic, search for "vim-gnome" and/or "vim-nox".

  3. To answer your question: the cloning created a "vim" directory in your "home": /home/steven/vim or ~/vim (~ being a shortcut for /home/steven). This "vim" directory is a self contained Mercurial repository and that's where you are supposed to issue any further Mercurial-related commands:

    $ hg clone vim
    $ cd vim <-- "change directory"
    $ hg something

    But you don't have to do that: the sources you get after the cloning are up to date and ready to be built.

Good luck and welcome on Linux (and SO).

share|improve this answer
Thanks for the very through answer. Yeah, I had a windows development environment set up for Ruby on Rails (which is the framework I'll be learning) on my last computer, but wanted to go all the way and "do it right" so to speak. I know it's perfectly fine to use windows, but I'd like the added benefits that Linux provides, and plus it gives me an excuse to work in this OS. – Steven Harlow Oct 7 '12 at 4:59
I can understand that: I've switched from Mac OS X to Linux about two years ago because I almost exclusively used UNIX/CLI tools. I don't miss anything. – romainl Oct 7 '12 at 6:35

If you are facing this issue abort: no repository found in '/home/username/path/to/project' (.hg not found)!

then probably .hg is missing in that repository. Run this command in terminal

hg init

once it is done use rest of the command normally to push your code in the repository.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .