Index

.hg/hgrc file, 139, 140, 207
.hg/localtags file, 158, 241, 243
.hg/patches.N directory, 312, 313
.hg/patches directory, 279, 285, 317, 318, 358, 359
.hg/store/data directory, 68
.hgignore file, 318, 359
.hgrc file, 32, 33, 64
.hgtags file, 157, 158, 241, 243
.orig file, 310
.rej file, 310, 311
.ssh/config file, 134
.ssh directory, 131, 132
EMAIL environment variable, 33
HGMERGE environment variable, 58, 62
HGUSER environment variable, 32, 33
HGt4ht@95xNODE environment variable, 212, 237
HGt4ht@95xPARENT1 environment variable, 237
HGt4ht@95xPARENT2 environment variable, 237
HGt4ht@95xSOURCE environment variable, 238
HGt4ht@95xURL environment variable, 237, 238
Mercurial.ini configuration file, 130
PATH environment variable, 133
PYTHONPATH environment variable, 133, 136, 219, 368
acl extension, 229, 230, 340
acl hook, 229
addbreaks template filter, 255
addremove command, 109, 310
add command, 98, 103, 104, 107, 111, 116, 145, 147, 170, 171, 173, 306, 318, 324, 350, 359, 362
    --dry-run option, 350
    --exclude option, 350
    --include option, 350
    -I option, 350
    -X option, 350
    -n option, 350
age template filter, 255
annotate command, 269, 285, 291
authorizedt4ht@95xkeys file, 131, 132
author template keyword, 251, 255, 256
    domain filter, 255
    email filter, 255
    person filter, 255
    user filter, 256
backout command, 175, 176, 178, 179, 181–183, 185, 186, 190
    --merge option, 179, 182, 190
    -m option, 176
basename template filter, 255
bash system command, 318
bisect command, 191–195, 199–202
bisect extension, 4, 269
branches command, 161
branches template keyword, 251
branch command, 161–163
bugzilla extension, 230, 232–235, 340
bugzilla hook, 231, 232
bundle command, 240
changegroup hook, 206, 209, 239, 240, 242
chmod system command, 135
clone command, 22, 31, 128, 129, 139, 158
    -r option, 158
commit command, 32–34, 54, 93, 103, 108, 109, 161, 209, 223, 229, 317, 318, 323, 358, 361
    --addremove option, 323
    -A option, 109
    -l option, 229
    -u option, 32, 33
commit hook, 206, 209, 214, 215, 239, 241, 243
config command, 207
convert command (conver extension), 16
convert extension, 16
conver extension
    convert command, 16
copy command, 98, 109–113, 174, 362
    --after option, 112
cp command, 112
cp system command, 111, 112
date template filter, 255
date template keyword, 251, 255, 256
    age filter, 255
    date filter, 255
    hgdate filter, 255
    isodate filter, 254, 255, 260
    rfc822date filter, 255
    shortdate filter, 256
desc template keyword, 251, 260
diffstat command
    -p option, 318
diffstat system command, 318, 320, 321, 346
diff command, 32, 34, 285, 309, 334, 340, 342, 343, 350–354, 358
    --exclude option, 351
    --git option, 350, 351, 353
    --ignore-all-space option, 353
    --ignore-blank-lines option, 351
    --ignore-space-change option, 351
    --include option, 351
    --nodates option, 350
    --rev option, 352
    --show-function option, 351
    --text option, 351
    -B option, 351
    -C option, 344
    -I option, 351
    -N option, 309
    -X option, 351
    -a option, 350, 351, 354
    -b option, 351
    -c option, 344
    -g option, 351
    -p option, 351
    -r option, 309, 352, 354
    -w option, 353
diff system command, 268, 270, 272, 273, 309, 343, 344
domain template filter, 255
email command (patchbomb extension), 345, 346
    --plain option, 346
    -a option, 346
    -b option, 345, 346
    -d option, 346
    -f option, 346
    -m option, 346
    -n option, 345
    -s option, 346
email template filter, 255
escape template filter, 255
export command, 190
extdiff command (extdiff extension), 336, 343, 344
    -o option, 343
    -p option, 343
extdiff extension, 334–336, 342–344
    extdiff command, 336, 343, 344
        -o option, 343
        -p option, 343
fetch command, 63
fetch command (fetch extension), 340
fetch extension, 63, 64, 340
    fetch command, 340
filet4ht@95xadds template keyword, 251
filet4ht@95xdels template keyword, 251
files template keyword, 251, 255
fill68 template filter, 255
fill76 template filter, 255
filterdiff command
    --files option, 324
    --hunks option, 324
    -i option, 323
    -x option, 323
filterdiff system command, 320, 321, 323, 324
firstline template filter, 255
foo command, 164
git system command, 127, 351, 353
grep system command, 196, 201
guards file, 330
header template keyword, 264
heads command, 51
help command, 22, 276, 358
hg-interdiff file, 335, 336
hgdate template filter, 255
hgext extension, 336
hgmerge system command, 58, 62, 243
hgrc configuration file, 133, 138–141, 166, 207, 208, 212, 219, 230–233, 235, 249, 334, 336, 342–345
hgrc file
    acl.allow section, 230
    acl.deny section, 230
    acl section, 229
        bundle entry, 230
        pull entry, 230
        push entry, 230
        serve entry, 229
        sources entry, 229
    bugzilla section, 231, 233
        db entry, 232
        host entry, 231
        notify entry, 232
        password entry, 232
        usermap entry, 232
        user entry, 232
        version entry, 231
    diff section
        showfunc entry, 351
    extdiff section, 344
    extensions section, 64, 334, 343
    hooks section, 212
    notify section, 235
        config entry, 235
        maxdiff entry, 235
        sources entry, 235
        strip entry, 235
        template entry, 235
        test entry, 235, 236
    ui section
        username entry, 32
        verbose entry, 218
    usermap section, 232, 234
    web section, 138, 140, 141, 233, 235
        accesslog entry, 140
        address entry, 140
        allowt4ht@95xarchive entry, 138, 139
        allowpull entry, 139
        baseurl entry, 233, 235
        contact entry, 139
        description entry, 140
        errorlog entry, 140
        ipv6 entry, 140
        maxchanges entry, 139
        maxfiles entry, 139
        motd entry, 140
        name entry, 140
        port entry, 140
        stripes entry, 139
        style entry, 139, 140
        templates entry, 140
hgweb.cgi file, 135–138, 140
hgweb.config file, 137, 140
hgwebdir.cgi file, 137, 138, 140
hg system command, 133
import command, 309, 354
incoming command, 36, 129, 207, 249
incoming hook, 206, 231, 239, 240, 242
init command, 318, 358
inotify extension, 340–342
    inserve command, 342
inserve command (inotify extension), 342
interdiff system command, 334–336, 344
isodate template filter, 254, 255, 260
kdiff3 system command, 58, 60, 344
locate command, 323
log command, 24, 25, 28–30, 33–35, 156, 157, 162, 176, 249, 250, 269, 317
    --patch option, 30
    --rev option, 28, 30, 31
    --template option, 250, 260
    -p option, 30
    -r option, 28, 30, 31
lsdiff system command, 320, 323
mercurial.localrepo module
    localrepository class, 219, 237
mercurial.node module
    bin function, 237
mercurial.ui module
    ui class, 219, 237
merge command, 51, 63, 81, 93, 96, 151, 165, 317, 354
merge system command, 62, 63
mpatch system command, 311
mq extension, 341, 344
    qapplied command, 294, 296, 300, 321, 358
    qcommit command, 318, 358
    qdelete command, 358
    qdel command
        -f option, 358
    qdiff command, 358
    qfold command, 323, 358, 359
        -e option, 359
        -l option, 359
        -m option, 359
    qguard command, 329, 330
    qheader command, 359
    qimport command, 310, 359
    qinit command, 276, 279, 317, 358, 359, 364
        -c option, 317, 318, 358, 359, 364
    qnew command, 285, 291, 294, 306, 310, 359, 360
        -f option, 309, 360
        -m option, 360
    qnext command, 360
    qpop command, 297, 300, 303, 309, 312, 317, 360, 361
        -a option, 303, 312, 313, 318, 360
        -f option, 309, 360
        -n option, 313, 361
    qprev command, 361
    qpush command, 300, 303, 309, 311–313, 317, 323, 330, 331, 341, 342, 360, 361, 364
        -a option, 303, 312, 313, 318, 341, 361
        -l option, 361
        -m option, 313, 361
        -n option, 361
    qrefresh command, 285, 288, 294, 309, 310, 312, 317, 321, 323, 360, 362
        -e option, 362
        -l option, 362
        -m option, 362
    qrename command, 362
    qrestore command, 362
    qsave command, 313, 362
        -c option, 312
        -e option, 312
    qselect command, 330
    qseries command, 294, 296, 300, 313, 363
    qtop command, 321, 363
    qunapplied command, 363
mq system command, 318
node template keyword, 251
    short filter, 256
notify extension, 234–236, 340
obfuscate template filter, 255
outgoing command, 38, 249
outgoing hook, 206, 207, 240, 241
pageant system command, 131, 132
parents command, 37, 54, 81, 354
parents template keyword, 251
patchbomb extension, 334, 345, 346
    email command, 345, 346
        --plain option, 346
        -a option, 346
        -b option, 345, 346
        -d option, 346
        -f option, 346
        -m option, 346
        -n option, 345
        -s option, 346
patchutils package, 321, 334
patch command
    --reverse option, 190
    -p option, 309
patch system command, 190, 268, 270, 272, 273, 309–311, 354
perl system command, 229
person template filter, 255
plink system command, 130, 131, 133
prechangegroup hook, 206, 239, 240, 242
precommit hook, 206, 223, 239, 241–243
preoutgoing hook, 206, 209, 240, 241
pretag hook, 206, 241, 243
pretxnchangegroup hook, 166, 206, 208, 209, 229, 239, 240, 242
pretxncommit hook, 206, 208, 215, 217, 220, 223, 226, 231, 239, 241, 242
preupdate hook, 206, 243, 244
pull command, 36–39, 48, 63, 93, 128, 139, 151, 163, 171, 207, 239, 242, 312, 313, 318
    -u option, 37
push command, 39, 151, 239, 240, 242
puttygen system command, 131
putty system command, 132
qapplied command (mq extension), 294, 296, 300, 321, 358
qcommit command (mq extension), 318, 358
qdelete command (mq extension), 358
qdel command (mq extension)
    -f option, 358
qdiff command (mq extension), 358
qfold command, 359
qfold command (mq extension), 323, 358, 359
    -e option, 359
    -l option, 359
    -m option, 359
qguard command, 330
qguard command (mq extension), 329, 330
qheader command (mq extension), 359
qimport command (mq extension), 310, 359
qinit command, 318, 358
qinit command (mq extension), 276, 279, 317, 358, 359, 364
    -c option, 317, 318, 358, 359, 364
qnew command, 309
qnew command (mq extension), 285, 291, 294, 306, 310, 359, 360
    -f option, 309, 360
    -m option, 360
qnext command (mq extension), 360
qpop command, 309, 312, 313, 318
qpop command (mq extension), 297, 300, 303, 309, 312, 317, 360, 361
    -a option, 303, 312, 313, 318, 360
    -f option, 309, 360
    -n option, 313, 361
qprev command (mq extension), 361
qpush command, 312, 313, 318
qpush command (mq extension), 300, 303, 309, 311–313, 317, 323, 330, 331, 341, 342, 360, 361, 364
    -a option, 303, 312, 313, 318, 341, 361
    -l option, 361
    -m option, 313, 361
    -n option, 361
qrefresh command (mq extension), 285, 288, 294, 309, 310, 312, 317, 321, 323, 360, 362
    -e option, 362
    -l option, 362
    -m option, 362
qrename command (mq extension), 362
qrestore command (mq extension), 362
qsave command, 312
qsave command (mq extension), 313, 362
    -c option, 312
    -e option, 312
qselect command (mq extension), 330
qseries command (mq extension), 294, 296, 300, 313, 363
qtop command (mq extension), 321, 363
qunapplied command (mq extension), 363
remove command, 98, 107, 108, 113, 145, 173, 174, 324, 362
    --after option, 108
rename command, 98, 112, 113, 151, 174, 175, 362
    --after option, 113
revert command, 108, 116, 172–174, 190, 288
rev template keyword, 251
rfc822date template filter, 255
rollback command, 170–172, 191
root command, 146
sed system command, 31
series file, 285, 312, 313, 318, 330, 332, 333, 358–364
serve command, 120, 121, 128, 129, 138, 140, 141
    -p option, 129
shortdate template filter, 256
short template filter, 256
ssh-add system command, 131, 132
ssh-agent system command, 131
ssh-keygen system command, 131
ssh command
    -C option, 133
ssh system command, 97, 121, 130, 132–134
status command, 31, 32, 34, 103, 107, 108, 110, 113, 146, 162, 170, 175, 190, 340, 353, 354, 361
    -C option, 110, 113
status file, 285, 312, 318, 359, 361, 364
strip command, 313, 363
    -b option, 363
    -f option, 363
    -n option, 363
strip template filter, 256
sudo system command, 234
tabindent template filter, 255, 256
tabindent template keyword, 260
tags command, 155, 156, 158
tags template keyword, 251
tag command, 122, 155, 157, 158
    -f option, 157
    -l option, 158
tag hook, 206, 242, 243
tar system command, 139
tip command, 35, 37, 162, 249, 321
    -p option, 321
transplant extension, 345
unbundle command, 239, 242
update command, 37, 38, 51, 63, 81, 123, 151, 163–165, 190, 313, 318
    -C option, 163, 164, 313
update hook, 206, 243
urlescape template filter, 256
user template filter, 256
version command, 21, 133, 353
vim system command, 344
wiggle system command, 311
zip system command, 139

configuration file
    Mercurial.ini (Windows), 130
    hgrc (Linux/Unix), 133, 138–141, 166, 207, 208, 212, 219, 230–233, 235, 249, 334, 336, 342–345

environment variables
    EMAIL, 33
    HGMERGE, 58, 62
    HGUSER, 32, 33
    HGt4ht@95xNODE, 212, 237
    HGt4ht@95xPARENT1, 237
    HGt4ht@95xPARENT2, 237
    HGt4ht@95xSOURCE, 238
    HGt4ht@95xURL, 237, 238
    PATH, 133
    PYTHONPATH, 133, 136, 219, 368

global options
    --debug option, 133, 230
    --exclude option, 149
    --include option, 149
    --quiet option, 31
    --verbose option, 22, 29, 31
    -I option, 149
    -X option, 149
    -q option, 31, 147
    -v option, 22, 29, 31, 129, 147, 218

hooks
    acl, 229
    bugzilla, 231, 232
    changegroup, 206, 209, 239, 240, 242
    commit, 206, 209, 214, 215, 239, 241, 243
    incoming, 206, 231, 239, 240, 242
    outgoing, 206, 207, 240, 241
    prechangegroup, 206, 239, 240, 242
    precommit, 206, 223, 239, 241–243
    preoutgoing, 206, 209, 240, 241
    pretag, 206, 241, 243
    pretxnchangegroup, 166, 206, 208, 209, 229, 239, 240, 242
    pretxncommit, 206, 208, 215, 217, 220, 223, 226, 231, 239, 241, 242
    preupdate, 206, 243, 244
    tag, 206, 242, 243
    update, 206, 243

Mercurial bug database
    bug  29, 115
    bug  311, 310

tags
    tip, 239, 242
    special tag names
        qbase, 313
        qtip, 313
template filters
    addbreaks, 255
    age, 255
    basename, 255
    date, 255
    domain, 255
    email, 255
    escape, 255
    fill68, 255
    fill76, 255
    firstline, 255
    hgdate, 255
    isodate, 254, 255, 260
    obfuscate, 255
    person, 255
    rfc822date, 255
    shortdate, 256
    short, 256
    strip, 256
    tabindent, 255, 256
    urlescape, 256
    user, 256
template keywords
    author, 251, 255, 256
    branches, 251
    date, 251, 255, 256
    desc, 251, 260
    filet4ht@95xadds, 251
    filet4ht@95xdels, 251
    files, 251, 255
    header, 264
    node, 251
    parents, 251
    rev, 251
    tabindent, 260
    tags, 251