Stop learning alone!

Learn faster and stay on-track by joining this free class with other self-learners.

Register for Learning Vim from the inside now.

Learning Vim from the inside

Open Ended Class

Creator: pbr

Status: Established

Join this class!

Lesson 1: Assignment 1

Install mercurial and id-utils using your Linux system's package management software. We'll be using them both in future lessons.

For example, under Ubuntu:

$ sudo aptitude install mercurial

$ sudo aptitude install id-utils

Use the class forum for this lesson if you get stuck, or to share any particular techniques/approaches you used to get these tools installed and working.

HOMEWORK: do not submit "homework" for this assignment unless you get particularly odd results or have a problem completing the exercise.

Homework Submissions

25 total

anandsingh00 (Self-grade: Outstanding)
Submitted 1 month ago | Permalink | Time spent: 1 minute
tommy_more (Self-grade: Outstanding)
Submitted 2 months ago | Permalink | Time spent: 1 minute

Done

rainkinz (Self-grade: Outstanding)
Submitted 6 months ago | Permalink | Time spent: 1 minute

Done

mams827 (Self-grade: Pretty good)
Submitted 1 year ago | Permalink

sorry, but how install mercurial in Centos 5.3??

Thanks, I install mercurial and id-utils, now I continue with course

Comments:

pbr
1 year ago

Greetings mams827

try here:

http://stackoverflow.com/questions/1170338/mercurial-for-beginners-the-definitive-practical-guide

Hope this helps! Welcome aboard - looking forward to your questions about the Vim sourcecode base.

-pbr

Sign up or log in to comment

nick_kore (Self-grade: Pretty good)
Submitted 1 year ago | Permalink

done

uzziel (Self-grade: Outstanding)
Submitted 1 year ago | Permalink
symm (Self-grade: Outstanding)
Submitted 1 year ago | Permalink

sudo aptitude install id-utils mercurial

popu (Self-grade: Pretty good)
Submitted 2 years ago | Permalink
# sudo aptitude install mercurial
sedrik (Self-grade: Outstanding)
Submitted 2 years ago | Permalink

the idutils package is called just that (idutils) in gentoo FYI

Comments:

pbr
2 years ago

Thanks for the info. The discrepancy with id-utils vs. idutils in package names is pretty confusing, huh? I'm wondering why it happened, but not hopeful it'll get fixed anytime soon.

sedrik
2 years ago

Someone somewhere probably decided to try to make it more readable and user friendly (most often not a bad thing) but using the upstream names for packages is much more desirable I think :)

Sign up or log in to comment

trigoman (Self-grade: Outstanding)
Submitted 2 years ago | Permalink

Umm, there was not much to it...

Comments:

pbr
2 years ago

Yes; these initial assignments can be pounded through really easily. That's why the homework note on the assignment says:

HOMEWORK: do not submit "homework" for this assignment unless you get particularly odd results or have a problem completing the exercise.

trigoman
2 years ago

Sorry...

pbr
2 years ago

Me too; I didn't realize the markup would come out that big when I pasted it. And there's currently no way to edit comments, so it's stuck like it is. Arrgh.

I set up "Lesson 1, Assignment 3" to collect peoples comments and progress on the first few lessons, with hopes that for assignments 1 and 2, only issues/problems/hurdles would get documented in the homework. Once the site's got comment/homework editing capabilities for course creators, I'll be able to prune things to that end. In the meanwhile, ...no worries. Welcome aboard, and I look forward to your contributions to the exploratory assignments!

Sign up or log in to comment

webframp (Self-grade: Outstanding)
Submitted 2 years ago | Permalink

A note for Arch Linux users. id-utils is available via AUR.

andrewferk (Self-grade: Outstanding)
Submitted 2 years ago | Permalink

sudo aptitude install mercurial id-utils

rahult (Self-grade: Outstanding)
Submitted 2 years ago | Permalink

sudo apt-get install id-utils mercurial Reading package lists... Done Building dependency tree
Reading state information... Done The following extra packages will be installed: mercurial-common Suggested packages: qct python-mysqldb python-pygments The following NEW packages will be installed: id-utils mercurial mercurial-common 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. Need to get 1,281kB of archives. After this operation, 5,358kB of additional disk space will be used. Do you want to continue [Y/n]? Get:1 http://ftp.netspace.net.au karmic/universe id-utils 4.2-1 [155kB] Get:2 http://ftp.netspace.net.au karmic/universe mercurial-common 1.3.1-1 [1,073kB] Get:3 http://ftp.netspace.net.au karmic/universe mercurial 1.3.1-1 [53.2kB] Fetched 1,281kB in 4s (275kB/s)
Selecting previously deselected package id-utils. (Reading database ... 221393 files and directories currently installed.) Unpacking id-utils (from .../id-utils_4.2-1_i386.deb) ... Selecting previously deselected package mercurial-common. Unpacking mercurial-common (from .../mercurial-common_1.3.1-1_all.deb) ... Selecting previously deselected package mercurial. Unpacking mercurial (from .../mercurial_1.3.1-1_i386.deb) ... Processing triggers for install-info ... Processing triggers for man-db ... Setting up id-utils (4.2-1) ... Ignoring install-info called from maintainer script The package id-utils should be rebuild with new debhelper to get trigger support

Setting up mercurial-common (1.3.1-1) ...

Setting up mercurial (1.3.1-1) ...

Creating config file /etc/mercurial/hgrc.d/hgext.rc with new version

Processing triggers for python-support ...

Comments:

pbr
2 years ago

Any particular reason you used apt-get instead of aptitude?

It's all good, though; as long as the tools are installed and working you're good to go.

Sign up or log in to comment

symbols (Self-grade: Outstanding)
Submitted 2 years ago | Permalink

sudo apt-get install mercurial id-utils

marocchino (Self-grade: Outstanding)
Submitted 2 years ago | Permalink

in mac 10.6.2

sudo port install mercurail +bash_completion

Comments:

pbr
2 years ago

So did you get id-utils as well?

marocchino
2 years ago

yap.

pbr
2 years ago

Rocking. Here's hoping all of this works for you; I've not tried it out on a mac myself.

Sign up or log in to comment

Enoex (Self-grade: Outstanding)
Submitted 2 years ago | Permalink

sudo aptitude install mercurial

sudo aptitude install id-utils

Worked fine. A bit newer to debain, I've always used apt-get and didn't know the difference between it and aptitude, which lead me to do a bit of research on the subject...it seem aptitude is probably what I should start using instead. Thanks :D

Comments:

pbr
2 years ago

Awesome.

Yes, you can and should use aptitude for just about anything you used to use apt-get for.

Sign up or log in to comment

rmrf (Self-grade: Outstanding)
Submitted 2 years ago | Permalink

In gentoo,

sudo emerge -v mercurial idutils
herrymon (Self-grade: Outstanding)
Submitted 2 years ago | Permalink

Installed via package manager (ubuntu 9.10)

**sudo aptitude install mercurial id-utils**

Writing extended state information... Done
MasseR (Self-grade: Outstanding)
Submitted 2 years ago | Permalink

Installed Mercurial through package manager.

yaourt -S mercurial

Comments:

pbr
2 years ago

Running ArchLinux, huh? Cool. Tell me if I'm wrong; my understanding is that "Yaourt is to pacman as aptitude is to apt-get"

...is that more or less accurate?

Sign up or log in to comment

sgithens (Self-grade: Outstanding)
Submitted 2 years ago | Permalink

I've used mercurial for some other stuff so it was installed. I did need to sudo apt-get id-utils though.

Comments:

pbr
2 years ago

No problem; main thing is to ensure the tools are there for you to use.

You might want to investigate using id-utils tools on that "other stuff" you're already working on. I find them really useful for looking around other people's code - for example, ensuring you've looked at ALL callers of a particular function you're changing.

Sign up or log in to comment

sonicgrass (Self-grade: Outstanding)
Submitted 2 years ago | Permalink

sudo aptitude install mercurial [sudo] password for sonicgrass: Reading package lists... Done Building dependency tree
Reading state information... Done Reading extended state information
Initializing package states... Done Writing extended state information... Done The following NEW packages will be installed: mercurial mercurial-common{a} 0 packages upgraded, 2 newly installed, 0 to remove and 5 not upgraded. Need to get 1,131kB of archives. After unpacking 4,874kB will be used. Do you want to continue? [Y/n/?] y Writing extended state information... Done Get:1 http://ports.ubuntu.com karmic/universe mercurial-common 1.3.1-1 [1,073kB] Get:2 http://ports.ubuntu.com karmic/universe mercurial 1.3.1-1 [57.4kB]
Fetched 1,131kB in 13s (84.9kB/s)
Selecting previously deselected package mercurial-common. (Reading database ... 122403 files and directories currently installed.) Unpacking mercurial-common (from .../mercurial-common_1.3.1-1_all.deb) ... Selecting previously deselected package mercurial. Unpacking mercurial (from .../mercurial_1.3.1-1_powerpc.deb) ... Processing triggers for man-db ... Setting up mercurial-common (1.3.1-1) ...

Setting up mercurial (1.3.1-1) ...

Creating config file /etc/mercurial/hgrc.d/hgext.rc with new version

Processing triggers for python-support ... Reading package lists... Done
Building dependency tree
Reading state information... Done Reading extended state information
Initializing package states... Done Writing extended state information... Done

sudo apt-get id-utils E: Invalid operation id-utils sonicgrass@hillbilly:~$ sudo aptitude install id-utils Reading package lists... Done Building dependency tree
Reading state information... Done Reading extended state information
Initializing package states... Done The following NEW packages will be installed: id-utils 0 packages upgraded, 1 newly installed, 0 to remove and 5 not upgraded. Need to get 176kB of archives. After unpacking 578kB will be used. Writing extended state information... Done Get:1 http://ports.ubuntu.com karmic/universe id-utils 4.2-1 [176kB] Fetched 176kB in 2s (69.5kB/s)
Selecting previously deselected package id-utils. (Reading database ... 122776 files and directories currently installed.) Unpacking id-utils (from .../id-utils_4.2-1_powerpc.deb) ... Processing triggers for install-info ... Processing triggers for man-db ... Setting up id-utils (4.2-1) ... Ignoring install-info called from maintainer script The package id-utils should be rebuild with new debhelper to get trigger support

Reading package lists... Done
Building dependency tree
Reading state information... Done Reading extended state information
Initializing package states... Done Writing extended state information... Done

Comments:

pbr
2 years ago

Awesome. You should be good to go.

Sign up or log in to comment

Bluelander (Self-grade: Outstanding)
Submitted 2 years ago | Permalink

sudo apt-get install mercurial [sudo] password for lander: Reading package lists... Done Building dependency tree
Reading state information... Done The following extra packages will be installed: mercurial-common Suggested packages: qct kdiff3 tkdiff meld xxdiff python-mysqldb python-pygments The following NEW packages will be installed: mercurial mercurial-common 0 upgraded, 2 newly installed, 0 to remove and 20 not upgraded. Need to get 1,130kB of archives. After this operation, 4,874kB of additional disk space will be used. Do you want to continue [Y/n]? y WARNING: The following packages cannot be authenticated! mercurial-common mercurial Authentication warning overridden. Get:1 http://archive.ubuntu.com karmic/universe mercurial-common 1.3.1-1 [1,073kB] Get:2 http://archive.ubuntu.com karmic/universe mercurial 1.3.1-1 [56.4kB]
Fetched 1,130kB in 8s (135kB/s)
Selecting previously deselected package mercurial-common. (Reading database ... 114065 files and directories currently installed.) Unpacking mercurial-common (from .../mercurial-common_1.3.1-1_all.deb) ... Selecting previously deselected package mercurial. Unpacking mercurial (from .../mercurial_1.3.1-1_amd64.deb) ... Processing triggers for man-db ... Setting up mercurial-common (1.3.1-1) ...

Setting up mercurial (1.3.1-1) ...

Creating config file /etc/mercurial/hgrc.d/hgext.rc with new version

Processing triggers for python-support ...

Comments:

pbr
2 years ago

I'm wondering why you had the authentication warning. I didn't see that when I installed mercurial. dunno. Maybe a difference between apt-get and aptitude. What distro are you running?

Bluelander
2 years ago

The newest version of Mint, it probably pulled from some extra repository and triggered the warning. Regardless, seems to be working fine.

Sign up or log in to comment

cfedde (Self-grade: Outstanding)
Submitted 2 years ago | Permalink

sudo aptitude install mercurial sudo aptitude install id-utils

all done now

Comments:

pbr
2 years ago

Awesome! I'll try to stay in front of you guys with laying in the follow-on lessons. If you run out of lessons/assignments, just check in again tomorrow and there'll be more!

Sign up or log in to comment

codebauer (Self-grade: Could be better)
Submitted 2 years ago | Permalink

apt-get install blar

Comments:

pbr
2 years ago

blar?

Sign up or log in to comment

dvelez (Self-grade: Outstanding)
Submitted 2 years ago | Permalink

daniel ~ $ sudo pacman -S mercurial Contraseña: resolviendo dependencias... verificando conflictos...

Objetivos (1): mercurial-1.4.2-1 [2,65 MB]

Tamaño total de descarga: 2,65 MB Tamaño total instalado: 10,52 MB

¿Continuar con la instalación? [S/n] S :: Descargando paquetes desde extra... mercurial-1.4.2-1-i686 2,6M 83,9K/s 00:00:32 [#####################] 100% Verificando la integridad de los paquetes... (1/1) verificando conflictos entre archivos [#####################] 100% (1/1) instalando mercurial [#####################] 100% Dependencias Opcionales para mercurial tk: for the hgk GUI

daniel ~ $ hg -v Mercurial Distributed SCM (version 1.4.2)

Copyright (C) 2005-2009 Matt Mackall and others This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. [...]

==> Continue installing idutils? [Y/n] ==> [v]iew package contents [c]heck package with namcap ==> ---------------------------------------------- ==>Y

Contraseña: cargando datos del paquete... comprobando dependencias... (1/1) instalando idutils [#####################] 100% If you like this package, please install aurvote and vote for its inclusion/keeping in [community]

Comments:

pbr
2 years ago

Bien hecho! Looks like you're good to go. What distro are you running?

webframp
2 years ago

pacman would mean it's Arch in this case. A note for other Arch users, the idutils package is available from AUR, and not installable using pacman. You will need yaourt or similar.

pbr
2 years ago

Yes I figured that out a little after I asked.

Also there's a note elsewhere about idutils vs. id-utils for Arch.

Thanks!

Sign up or log in to comment