tests: added a short description to issue numbers
Many tests already had a short line to describe what IssueXXX is
about. I find that quite useful when reading a test.
--- a/tests/test-586.t Fri Sep 24 03:04:14 2010 +0200
+++ b/tests/test-586.t Fri Sep 24 10:13:49 2010 +0200
@@ -1,4 +1,5 @@
-a test for issue586
+Issue586: removing remote files after merge appears to corrupt the
+dirstate
$ hg init a
$ cd a
@@ -31,7 +32,8 @@
C b
$ cd ..
-a test for issue 1433, related to issue586
+Issue1433: Traceback after two unrelated pull, two move, a merge and
+a commit (related to issue586)
create test repos
--- a/tests/test-add.t Fri Sep 24 03:04:14 2010 +0200
+++ b/tests/test-add.t Fri Sep 24 10:13:49 2010 +0200
@@ -69,7 +69,7 @@
$ hg resolve -m a
$ hg ci -m merge
-issue683
+Issue683: peculiarity with hg revert of an removed then added file
$ hg forget a
$ hg add a
--- a/tests/test-addremove-similar.t Fri Sep 24 03:04:14 2010 +0200
+++ b/tests/test-addremove-similar.t Fri Sep 24 10:13:49 2010 +0200
@@ -69,7 +69,7 @@
$ cd ..
-issue 1527
+Issue1527: repeated addremove causes util.Abort
$ hg init rep3; cd rep3
$ mkdir d
--- a/tests/test-annotate.t Fri Sep 24 03:04:14 2010 +0200
+++ b/tests/test-annotate.t Fri Sep 24 10:13:49 2010 +0200
@@ -207,7 +207,7 @@
1:2: a
1:3: a
-test issue 589
+Issue589: "undelete" sequence leads to crash
annotate was crashing when trying to --follow something
--- a/tests/test-bisect.t Fri Sep 24 03:04:14 2010 +0200
+++ b/tests/test-bisect.t Fri Sep 24 10:13:49 2010 +0200
@@ -287,7 +287,8 @@
5cd978ea5149
-reproduce AssertionError, issue1228 and issue1182
+Issue1228: hg bisect crashes when you skip the last rev in bisection
+Issue1182: hg bisect exception
$ hg bisect -r
$ hg bisect -b 4
--- a/tests/test-bundle-r.t Fri Sep 24 03:04:14 2010 +0200
+++ b/tests/test-bundle-r.t Fri Sep 24 10:13:49 2010 +0200
@@ -232,7 +232,8 @@
$ hg -R test bundle --base 3 -r 3 -r 3 test-bundle-cset-3.hg
1 changesets found
-issue1910
+Issue1910: 'hg bundle --base $head' does not exclude $head from
+result
$ hg -R test bundle --base 7 test-bundle-cset-7.hg
4 changesets found
--- a/tests/test-churn.t Fri Sep 24 03:04:14 2010 +0200
+++ b/tests/test-churn.t Fri Sep 24 10:13:49 2010 +0200
@@ -126,7 +126,7 @@
$ cd ..
-issue 833: ZeroDivisionError
+Issue833: ZeroDivisionError
$ hg init issue-833
$ cd issue-833
--- a/tests/test-clone.t Fri Sep 24 03:04:14 2010 +0200
+++ b/tests/test-clone.t Fri Sep 24 10:13:49 2010 +0200
@@ -418,7 +418,8 @@
$ rm -r ua
-Testing issue2267:
+Issue2267: Error in 1.6 hg.py: TypeError: 'NoneType' object is not
+iterable in addbranchrevs()
$ cat <<EOF > simpleclone.py
> from mercurial import ui, hg
--- a/tests/test-command-template.t Fri Sep 24 03:04:14 2010 +0200
+++ b/tests/test-command-template.t Fri Sep 24 10:13:49 2010 +0200
@@ -548,7 +548,7 @@
[1e4e1b8f71e0]
-Issue 2130:
+Issue2130: xml output for 'hg heads' is malformed
$ hg heads --style changelog
2020-01-01 test <test>
@@ -1298,7 +1298,8 @@
$ cd ..
-Style path expansion (issue1948):
+Style path expansion: issue1948 - ui.style option doesn't work on OSX
+if it is a relative path
$ mkdir -p home/styles
--- a/tests/test-commit.t Fri Sep 24 03:04:14 2010 +0200
+++ b/tests/test-commit.t Fri Sep 24 10:13:49 2010 +0200
@@ -204,6 +204,8 @@
$ cd ..
$ cd ..
+Issue1049: Hg permits partial commit of merge without warning
+
$ cd ..
$ hg init issue1049
$ cd issue1049
--- a/tests/test-dirstate.t Fri Sep 24 03:04:14 2010 +0200
+++ b/tests/test-dirstate.t Fri Sep 24 10:13:49 2010 +0200
@@ -16,7 +16,8 @@
moving a/b/c/d/z to z/b/c/d/z
$ cd ..
------- issue1790
+Issue1790: dirstate entry locked into unset if file mtime is set into
+the future
Prepare test repo:
--- a/tests/test-extension.t Fri Sep 24 03:04:14 2010 +0200
+++ b/tests/test-extension.t Fri Sep 24 10:13:49 2010 +0200
@@ -232,7 +232,7 @@
[+] marked option can be specified multiple times
$ echo 'debugextension = !' >> $HGRCPATH
-Issue811:
+Issue811: Problem loading extensions twice (by site and by user)
$ debugpath=`pwd`/debugissue811.py
$ cat > debugissue811.py <<EOF
--- a/tests/test-extra-filelog-entry.t Fri Sep 24 03:04:14 2010 +0200
+++ b/tests/test-extra-filelog-entry.t Fri Sep 24 10:13:49 2010 +0200
@@ -1,4 +1,4 @@
-test for issue351
+Issue351: mq: qrefresh can create extra revlog entry
$ echo "[extensions]" >> $HGRCPATH
$ echo "mq=" >> $HGRCPATH
--- a/tests/test-glog.t Fri Sep 24 03:04:14 2010 +0200
+++ b/tests/test-glog.t Fri Sep 24 10:13:49 2010 +0200
@@ -733,7 +733,7 @@
summary: two
-File log with explicit style (issue 1896):
+Issue1896: File log with explicit style
$ hg glog --style=default one
o changeset: 0:3d578b4a1f53
user: test
--- a/tests/test-grep.t Fri Sep 24 03:04:14 2010 +0200
+++ b/tests/test-grep.t Fri Sep 24 10:13:49 2010 +0200
@@ -116,9 +116,10 @@
$ cd ..
+Issue685: trackback in grep -r after rename
+
Got a traceback when using grep on a single
revision with renamed files.
-issue 685
$ hg init issue685
$ cd issue685
--- a/tests/test-hgignore.t Fri Sep 24 03:04:14 2010 +0200
+++ b/tests/test-hgignore.t Fri Sep 24 10:13:49 2010 +0200
@@ -1,6 +1,6 @@
$ hg init
-Test issue 562: .hgignore requires newline at end:
+Issue562: .hgignore requires newline at end:
$ touch foo
$ touch bar
--- a/tests/test-hgrc.t Fri Sep 24 03:04:14 2010 +0200
+++ b/tests/test-hgrc.t Fri Sep 24 10:13:49 2010 +0200
@@ -4,7 +4,7 @@
[255]
$ echo "" > $HGRCPATH
-issue1199: escaping
+Issue1199: Can't use '%' in hgrc (eg url encoded username)
$ hg init "foo%bar"
$ hg clone "foo%bar" foobar
--- a/tests/test-hook.t Fri Sep 24 03:04:14 2010 +0200
+++ b/tests/test-hook.t Fri Sep 24 10:13:49 2010 +0200
@@ -467,7 +467,9 @@
ImportError: No module named hgext_importfail
Traceback (most recent call last):
-commit and update hooks should run after command completion (issue 1827)
+Issue1827: Hooks Update & Commit not completely post operation
+
+commit and update hooks should run after command completion
$ echo '[hooks]' > .hg/hgrc
$ echo 'commit = hg id' >> .hg/hgrc
--- a/tests/test-import.t Fri Sep 24 03:04:14 2010 +0200
+++ b/tests/test-import.t Fri Sep 24 10:13:49 2010 +0200
@@ -344,9 +344,11 @@
$ rm -r b
-We weren't backing up the correct dirstate file when importing many patches
-(issue963)
-import patch1 patch2; rollback
+Issue963: Parent of working dir incorrect after import of multiple
+patches and rollback
+
+We weren't backing up the correct dirstate file when importing many
+patches: import patch1 patch2; rollback
$ echo line 3 >> a/a
$ hg --cwd a ci -m'third change'
@@ -542,7 +544,7 @@
$ cd ..
-test update+rename with common name (issue 927)
+Issue927: test update+rename with common name
$ hg init t
$ cd t
@@ -661,7 +663,7 @@
$ cd ..
-add empty file from the end of patch (issue 1495)
+Issue1495: add empty file from the end of patch
$ hg init addemptyend
$ cd addemptyend
@@ -716,7 +718,7 @@
a
-first line mistaken for email headers (issue 1859)
+Issue1859: first line mistaken for email headers
$ hg init emailconfusion
$ cd emailconfusion
@@ -825,7 +827,7 @@
$ cd ..
-issue2102
+Issue2102: hg export and hg import speak different languages
$ hg init issue2102
$ cd issue2102
--- a/tests/test-locate.t Fri Sep 24 03:04:14 2010 +0200
+++ b/tests/test-locate.t Fri Sep 24 10:13:49 2010 +0200
@@ -83,7 +83,7 @@
t/e.h
t/x
-Test issue294:
+Issue294: hg remove --after dir fails when dir.* also exists
$ cd ..
$ rm -r t
--- a/tests/test-log.t Fri Sep 24 03:04:14 2010 +0200
+++ b/tests/test-log.t Fri Sep 24 10:13:49 2010 +0200
@@ -1020,7 +1020,7 @@
summary: add foo, related
-Test from/for issue2383
+Issue2383: hg log showing _less_ differences than hg diff
$ hg init issue2383
$ cd issue2383
--- a/tests/test-mq-merge.t Fri Sep 24 03:04:14 2010 +0200
+++ b/tests/test-mq-merge.t Fri Sep 24 10:13:49 2010 +0200
@@ -1,4 +1,4 @@
-# Test issue 529 - mq aborts when merging patch deleting files
+Issue529: mq aborts when merging patch deleting files
$ checkundo()
> {
--- a/tests/test-mq-missingfiles.t Fri Sep 24 03:04:14 2010 +0200
+++ b/tests/test-mq-missingfiles.t Fri Sep 24 10:13:49 2010 +0200
@@ -1,8 +1,7 @@
-# Test issue835:
-# qpush fails immediately when patching a missing file, but
-# remaining added files are still created empty which will
-# trick a future qrefresh.
+Issue835: qpush fails immediately when patching a missing file, but
+remaining added files are still created empty which will trick a
+future qrefresh.
$ cat > writelines.py <<EOF
> import sys
--- a/tests/test-mq-qrefresh.t Fri Sep 24 03:04:14 2010 +0200
+++ b/tests/test-mq-qrefresh.t Fri Sep 24 10:13:49 2010 +0200
@@ -402,7 +402,7 @@
$ cd ..
-Test issue 1441: qrefresh confused after hg rename:
+Issue1441: qrefresh confused after hg rename:
$ hg init repo-1441
$ cd repo-1441
@@ -422,7 +422,8 @@
$ cd ..
-Issue2025: qrefresh does not honor filtering options when tip != qtip:
+Issue2025: qrefresh does not honor filtering options when tip !=
+qtip:
$ hg init repo-2025
$ cd repo-2025
--- a/tests/test-mq.t Fri Sep 24 03:04:14 2010 +0200
+++ b/tests/test-mq.t Fri Sep 24 10:13:49 2010 +0200
@@ -1215,7 +1215,7 @@
$ cd ..
-test applying on an empty file (issue 1033)
+Issue1033: test applying on an empty file
$ hg init empty
$ cd empty
--- a/tests/test-pull.t Fri Sep 24 03:04:14 2010 +0200
+++ b/tests/test-pull.t Fri Sep 24 10:13:49 2010 +0200
@@ -51,7 +51,7 @@
$ hg rollback --dry-run --verbose
rolling back to revision -1 \(undo pull: http://foo:\*\*\*@localhost:.*/\) (re)
-Issue 622:
+Issue622: hg init && hg pull -u URL doesn't checkout default branch
$ cd ..
$ hg init empty
--- a/tests/test-push-warn.t Fri Sep 24 03:04:14 2010 +0200
+++ b/tests/test-push-warn.t Fri Sep 24 10:13:49 2010 +0200
@@ -141,7 +141,8 @@
[1]
-Issue 450:
+Issue450: push -r warns about remote head creation even if no heads
+will be created
$ hg init ../e
$ hg push -r 0 ../e
@@ -163,7 +164,8 @@
$ cd ..
-Issue 736:
+Issue736: named branches are not considered for detection of
+unmerged heads in "hg push"
$ hg init f
$ cd f
--- a/tests/test-rename-after-merge.t Fri Sep 24 03:04:14 2010 +0200
+++ b/tests/test-rename-after-merge.t Fri Sep 24 10:13:49 2010 +0200
@@ -1,5 +1,5 @@
-Test issue 746: renaming files brought by the second parent of a merge
-was broken.
+Issue746: renaming files brought by the second parent of a merge was
+broken.
Create source repository:
@@ -59,8 +59,8 @@
$ cd ..
-Test issue 1476: renaming a first parent file into another first
-parent file while none of them belong to the second parent was broken
+Issue 1476: renaming a first parent file into another first parent
+file while none of them belong to the second parent was broken
$ hg init repo1476
$ cd repo1476
--- a/tests/test-revert.t Fri Sep 24 03:04:14 2010 +0200
+++ b/tests/test-revert.t Fri Sep 24 10:13:49 2010 +0200
@@ -168,7 +168,7 @@
$ cd ..
-issue 241
+Issue241: update and revert produces inconsistent repositories
$ hg init a
$ cd a
@@ -194,7 +194,7 @@
reverting a
-issue332
+Issue332: confusing message when reverting directory
$ hg ci -A -m b
adding b/b
--- a/tests/test-revlog-group-emptyiter.t Fri Sep 24 03:04:14 2010 +0200
+++ b/tests/test-revlog-group-emptyiter.t Fri Sep 24 10:13:49 2010 +0200
@@ -1,4 +1,4 @@
-issue 1678
+Issue1678: IndexError when pushing
setting up base repo
$ hg init a
--- a/tests/test-subrepo.t Fri Sep 24 03:04:14 2010 +0200
+++ b/tests/test-subrepo.t Fri Sep 24 10:13:49 2010 +0200
@@ -17,7 +17,7 @@
$ hg init s
$ echo a > s/a
-issue2232 - committing a subrepo without .hgsub
+Issue2232: committing a subrepo without .hgsub
$ hg ci -mbad s
abort: can't commit subrepos without .hgsub
@@ -34,7 +34,7 @@
$ hg ci -m1
committing subrepository s
-issue 2022 - update -C
+Issue2022: update -C
$ echo b > s/a
$ hg sum
@@ -365,7 +365,8 @@
abort: missing ] in subrepo source
[255]
-issue 1986
+Issue1986: merge aborts when trying to merge a subrepo that
+shouldn't need merging
# subrepo layout
#
@@ -546,7 +547,7 @@
default = */test-subrepo.t/sub/mercurial/nested_relative (glob)
$ rm -rf mercurial mercurial2
-issue 1977
+Issue1977: multirepo push should fail if subrepo push fails
$ hg init repo
$ hg init repo/s
--- a/tests/test-symlinks.t Fri Sep 24 03:04:14 2010 +0200
+++ b/tests/test-symlinks.t Fri Sep 24 10:13:49 2010 +0200
@@ -240,7 +240,7 @@
dangling2 -> void
-issue995
+Issue995: hg copy -A incorrectly handles symbolic links
$ hg up -C
0 files updated, 0 files merged, 0 files removed, 0 files unresolved
--- a/tests/test-tag.t Fri Sep 24 03:04:14 2010 +0200
+++ b/tests/test-tag.t Fri Sep 24 10:13:49 2010 +0200
@@ -148,7 +148,8 @@
$ cd test
-issue 601
+Issue601: hg tag doesn't do the right thing if .hgtags or localtags
+doesn't end with EOL
$ python << EOF
> f = file('.hg/localtags'); last = f.readlines()[-1][:-1]; f.close()
--- a/tests/test-transplant.t Fri Sep 24 03:04:14 2010 +0200
+++ b/tests/test-transplant.t Fri Sep 24 10:13:49 2010 +0200
@@ -236,8 +236,7 @@
foo
$ cd ..
-Test transplant --merge (issue 1111)
-test transplant merge
+Issue1111: Test transplant --merge
$ hg init t1111
$ cd t1111