##// END OF EJS Templates
tests: include modified/added/removed files in "log -r wdir()" output...
Yuya Nishihara -
r28565:bfc7f20c default
parent child Browse files
Show More
@@ -1777,6 +1777,29 b' issue3772: hg log -r :null showing revis'
1777
1777
1778 working-directory revision requires special treatment
1778 working-directory revision requires special treatment
1779
1779
1780 clean:
1781
1782 $ hg log -r 'wdir()' --debug
1783 changeset: 2147483647:ffffffffffffffffffffffffffffffffffffffff
1784 phase: draft
1785 parent: 0:65624cd9070a035fa7191a54f2b8af39f16b0c08
1786 parent: -1:0000000000000000000000000000000000000000
1787 user: test
1788 date: [A-Za-z0-9:+ ]+ (re)
1789 extra: branch=default
1790
1791
1792 dirty:
1793
1794 $ echo 2 >> d1/f1
1795 $ echo 2 > d1/f2
1796 $ hg add d1/f2
1797 $ hg remove .d6/f1
1798 $ hg status
1799 M d1/f1
1800 A d1/f2
1801 R .d6/f1
1802
1780 $ hg log -r 'wdir()'
1803 $ hg log -r 'wdir()'
1781 changeset: 2147483647:ffffffffffff
1804 changeset: 2147483647:ffffffffffff
1782 parent: 0:65624cd9070a
1805 parent: 0:65624cd9070a
@@ -1793,6 +1816,9 b' working-directory revision requires spec'
1793 parent: -1:0000000000000000000000000000000000000000
1816 parent: -1:0000000000000000000000000000000000000000
1794 user: test
1817 user: test
1795 date: [A-Za-z0-9:+ ]+ (re)
1818 date: [A-Za-z0-9:+ ]+ (re)
1819 files: d1/f1
1820 files+: d1/f2
1821 files-: .d6/f1
1796 extra: branch=default
1822 extra: branch=default
1797
1823
1798 $ hg log -r 'wdir()' -Tjson
1824 $ hg log -r 'wdir()' -Tjson
@@ -1834,12 +1860,14 b' working-directory revision requires spec'
1834 "parents": ["65624cd9070a035fa7191a54f2b8af39f16b0c08"],
1860 "parents": ["65624cd9070a035fa7191a54f2b8af39f16b0c08"],
1835 "manifest": null,
1861 "manifest": null,
1836 "extra": {"branch": "default"},
1862 "extra": {"branch": "default"},
1837 "modified": [],
1863 "modified": ["d1/f1"],
1838 "added": [],
1864 "added": ["d1/f2"],
1839 "removed": []
1865 "removed": [".d6/f1"]
1840 }
1866 }
1841 ]
1867 ]
1842
1868
1869 $ hg revert -aqC
1870
1843 Check that adding an arbitrary name shows up in log automatically
1871 Check that adding an arbitrary name shows up in log automatically
1844
1872
1845 $ cat > ../names.py <<EOF
1873 $ cat > ../names.py <<EOF
General Comments 0
You need to be logged in to leave comments. Login now