mercurial/commands.py
changeset 15103 5ca8c111e9aa
parent 15081 d30ec2d16c5a
child 15104 a20f5088013a
equal deleted inserted replaced
15102:a7e375d087f6 15103:5ca8c111e9aa
  3382     .. note::
  3382     .. note::
  3383        log -p/--patch may generate unexpected diff output for merge
  3383        log -p/--patch may generate unexpected diff output for merge
  3384        changesets, as it will only compare the merge changeset against
  3384        changesets, as it will only compare the merge changeset against
  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 
       
  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"
  3387 
  3427 
  3388     Returns 0 on success.
  3428     Returns 0 on success.
  3389     """
  3429     """
  3390 
  3430 
  3391     matchfn = scmutil.match(repo[None], pats, opts)
  3431     matchfn = scmutil.match(repo[None], pats, opts)