tests/test-glog.t
changeset 16408 d74099ac2ac1
parent 16407 49ef1c382965
child 16409 2cbd7dd0cc1f
equal deleted inserted replaced
16407:49ef1c382965 16408:d74099ac2ac1
  1536 have 2 filelog topological heads in a linear changeset graph.
  1536 have 2 filelog topological heads in a linear changeset graph.
  1537 
  1537 
  1538   $ cd ..
  1538   $ cd ..
  1539   $ hg init follow
  1539   $ hg init follow
  1540   $ cd follow
  1540   $ cd follow
       
  1541   $ testlog --follow
       
  1542   []
       
  1543   []
  1541   $ echo a > a
  1544   $ echo a > a
  1542   $ echo aa > aa
  1545   $ echo aa > aa
  1543   $ echo f > f
  1546   $ echo f > f
  1544   $ hg ci -Am "add a"
  1547   $ hg ci -Am "add a" a aa f
  1545   adding a
       
  1546   adding aa
       
  1547   adding f
       
  1548   $ hg cp a b
  1548   $ hg cp a b
  1549   $ hg cp f g
  1549   $ hg cp f g
  1550   $ hg ci -m "copy a b"
  1550   $ hg ci -m "copy a b"
  1551   $ mkdir dir
  1551   $ mkdir dir
  1552   $ hg mv b dir
  1552   $ hg mv b dir
  1923 
  1923 
  1924   $ hg tag 'foo-bar'
  1924   $ hg tag 'foo-bar'
  1925   $ testlog -r 'foo-bar'
  1925   $ testlog -r 'foo-bar'
  1926   ['foo-bar']
  1926   ['foo-bar']
  1927   []
  1927   []
       
  1928 
       
  1929 Test --follow and forward --rev
       
  1930 
       
  1931   $ hg up -q 6
       
  1932   $ echo g > g
       
  1933   $ hg ci -Am 'add g' g
       
  1934   created new head
       
  1935   $ hg up -q 2
       
  1936   $ hg log -G --template "{rev} {desc|firstline}\n"
       
  1937   o  8 add g
       
  1938   |
       
  1939   | o  7 Added tag foo-bar for changeset fc281d8ff18d
       
  1940   |/
       
  1941   o    6 merge 5 and 4
       
  1942   |\
       
  1943   | o  5 add another e
       
  1944   | |
       
  1945   o |  4 mv dir/b e
       
  1946   |/
       
  1947   o  3 mv a b; add d
       
  1948   |
       
  1949   @  2 mv b dir/b
       
  1950   |
       
  1951   o  1 copy a b
       
  1952   |
       
  1953   o  0 add a
       
  1954   
       
  1955   $ testlog --follow -r6 -r8 -r5 -r7 -r4
       
  1956   ['6', '8', '5', '7', '4']
       
  1957   (group
       
  1958     (func
       
  1959       ('symbol', 'descendants')
       
  1960       ('symbol', '6')))
       
  1961   --- log.nodes	* (glob)
       
  1962   +++ glog.nodes	* (glob)
       
  1963   @@ -1,3 +1,3 @@
       
  1964   -nodetag 6
       
  1965    nodetag 8
       
  1966    nodetag 7
       
  1967   +nodetag 6
       
  1968   [1]
       
  1969 
       
  1970 Test --follow and backward --rev
       
  1971 
       
  1972   $ testlog --follow -r6 -r5 -r7 -r8 -r4
       
  1973   ['6', '5', '7', '8', '4']
       
  1974   (group
       
  1975     (func
       
  1976       ('symbol', 'ancestors')
       
  1977       ('symbol', '6')))
       
  1978