Mercurial > hg
comparison tests/test-log.t @ 28566:34f798bec3dc
tests: add test for "log -r wdir() -p" (issue4871)
The issue has been fixed by 93bcc73df8d5, "cmdutil.changeset_printer: pass
context into showpatch()". This patch adds test to prevent future regression.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 13 Mar 2016 23:27:27 +0900 |
parents | bfc7f20c76c7 |
children | d7af9b4ae7dd |
comparison
equal
deleted
inserted
replaced
28565:bfc7f20c76c7 | 28566:34f798bec3dc |
---|---|
1786 parent: -1:0000000000000000000000000000000000000000 | 1786 parent: -1:0000000000000000000000000000000000000000 |
1787 user: test | 1787 user: test |
1788 date: [A-Za-z0-9:+ ]+ (re) | 1788 date: [A-Za-z0-9:+ ]+ (re) |
1789 extra: branch=default | 1789 extra: branch=default |
1790 | 1790 |
1791 $ hg log -r 'wdir()' -p --stat | |
1792 changeset: 2147483647:ffffffffffff | |
1793 parent: 0:65624cd9070a | |
1794 user: test | |
1795 date: [A-Za-z0-9:+ ]+ (re) | |
1796 | |
1797 | |
1798 | |
1791 | 1799 |
1792 dirty: | 1800 dirty: |
1793 | 1801 |
1794 $ echo 2 >> d1/f1 | 1802 $ echo 2 >> d1/f1 |
1795 $ echo 2 > d1/f2 | 1803 $ echo 2 > d1/f2 |
1818 date: [A-Za-z0-9:+ ]+ (re) | 1826 date: [A-Za-z0-9:+ ]+ (re) |
1819 files: d1/f1 | 1827 files: d1/f1 |
1820 files+: d1/f2 | 1828 files+: d1/f2 |
1821 files-: .d6/f1 | 1829 files-: .d6/f1 |
1822 extra: branch=default | 1830 extra: branch=default |
1831 | |
1832 $ hg log -r 'wdir()' -p --stat --git | |
1833 changeset: 2147483647:ffffffffffff | |
1834 parent: 0:65624cd9070a | |
1835 user: test | |
1836 date: [A-Za-z0-9:+ ]+ (re) | |
1837 | |
1838 .d6/f1 | 1 - | |
1839 d1/f1 | 1 + | |
1840 d1/f2 | 1 + | |
1841 3 files changed, 2 insertions(+), 1 deletions(-) | |
1842 | |
1843 diff --git a/.d6/f1 b/.d6/f1 | |
1844 deleted file mode 100644 | |
1845 --- a/.d6/f1 | |
1846 +++ /dev/null | |
1847 @@ -1,1 +0,0 @@ | |
1848 -1 | |
1849 diff --git a/d1/f1 b/d1/f1 | |
1850 --- a/d1/f1 | |
1851 +++ b/d1/f1 | |
1852 @@ -1,1 +1,2 @@ | |
1853 1 | |
1854 +2 | |
1855 diff --git a/d1/f2 b/d1/f2 | |
1856 new file mode 100644 | |
1857 --- /dev/null | |
1858 +++ b/d1/f2 | |
1859 @@ -0,0 +1,1 @@ | |
1860 +2 | |
1823 | 1861 |
1824 $ hg log -r 'wdir()' -Tjson | 1862 $ hg log -r 'wdir()' -Tjson |
1825 [ | 1863 [ |
1826 { | 1864 { |
1827 "rev": null, | 1865 "rev": null, |