'hg ci .' regression

Giorgos Keramidas keramida at ceid.upatras.gr
Sun Mar 18 15:52:30 CDT 2007


Changeset 4182:01c4ea5e788c to the crew repository seems to have caused
problems with commands that use a 'dot directory', i.e.:

    hg ci .

I've attached a patch for crew which expands tests/test-commit to test
this, and updated test-commit.out with the output of Hg for versions
before crew @ 4182.

Alexis, since you are the one who made change 4182:01c4ea5e788c, any
idea how this could have broken commands like "hg ci ."?

Regards,
Giorgos

-------------- next part --------------
# HG changeset patch
# User Giorgos Keramidas <keramida at ceid.upatras.gr>
# Date 1174250945 -7200
# Node ID bb7d14f2bbce9e6a7e69360fb22a610635617b68
# Parent  da6b148771950a1f876683e7458cd9acb337bc31
tests: expand test-commit a bit to test 'hg commit .' too

diff --git a/tests/test-commit b/tests/test-commit
--- a/tests/test-commit
+++ b/tests/test-commit
@@ -71,4 +71,21 @@ hg log -v
 hg log -v
 cd ..
 
+echo % dot and subdir commit test
+hg init test3
+cd test3
+mkdir foo
+echo foo content > foo/plain-file
+hg addremove
+hg ci -d '1000000 0' -u test -m commit-foo-subdir foo
+echo modified foo content > foo/plain-file
+hg ci -d '2000000 0' -u test -m commit-foo-dot .
+echo % full log
+hg log -v
+echo % subdir log
+cd foo
+hg log .
+cd ..
+cd ..
+
 exit 0
diff --git a/tests/test-commit.out b/tests/test-commit.out
--- a/tests/test-commit.out
+++ b/tests/test-commit.out
@@ -64,3 +64,35 @@ commit-subdir-1
 commit-subdir-1
 
 
+% dot and subdir commit test
+adding foo/plain-file
+% full log
+changeset:   1:d9180e04fa8a
+tag:         tip
+user:        test
+date:        Sat Jan 24 03:33:20 1970 +0000
+files:       foo/plain-file
+description:
+commit-foo-dot
+
+
+changeset:   0:80b572aaf098
+user:        test
+date:        Mon Jan 12 13:46:40 1970 +0000
+files:       foo/plain-file
+description:
+commit-foo-subdir
+
+
+% subdir log
+changeset:   1:d9180e04fa8a
+tag:         tip
+user:        test
+date:        Sat Jan 24 03:33:20 1970 +0000
+summary:     commit-foo-dot
+
+changeset:   0:80b572aaf098
+user:        test
+date:        Mon Jan 12 13:46:40 1970 +0000
+summary:     commit-foo-subdir
+


More information about the Mercurial-devel mailing list