##// END OF EJS Templates
log: add some usage examples to verbose help
Matt Mackall -
r15103:5ca8c111 default
parent child Browse files
Show More
@@ -3385,6 +3385,46 b' def log(ui, repo, *pats, **opts):'
3385 its first parent. Also, only files different from BOTH parents
3385 its first parent. Also, only files different from BOTH parents
3386 will appear in files:.
3386 will appear in files:.
3387
3387
3388 .. container:: verbose
3389
3390 Some examples:
3391
3392 - changesets with full descriptions and file lists::
3393
3394 hg log -v
3395
3396 - changesets ancestral to the working directory::
3397
3398 hg log -f
3399
3400 - last 10 commits on the current branch::
3401
3402 hg log -l 10 -b .
3403
3404 - changesets showing all modifications of a file, including removals::
3405
3406 hg log --removed file.c
3407
3408 - all changesets that touch a directory, with diffs, excluding merges::
3409
3410 hg log -Mp lib/
3411
3412 - all revision numbers that match a keyword::
3413
3414 hg log -k bug --template "{rev}\\n"
3415
3416 - check if a given changeset is included is a tagged release::
3417
3418 hg log -r "a21ccf and ancestor(1.9)"
3419
3420 - find all changesets by some user in a date range::
3421
3422 hg log -k alice -d "may 2008 to jul 2008"
3423
3424 - summary of all changesets after the last tag::
3425
3426 hg log -r "last(tagged())::" --template "{desc|firstline}\\n"
3427
3388 Returns 0 on success.
3428 Returns 0 on success.
3389 """
3429 """
3390
3430
General Comments 0
You need to be logged in to leave comments. Login now