Mercurial > public > mercurial-scm > hg-stable
diff tests/test-commit.out @ 1202:71111d796e40
Commit date validation: more stringent checks, more useful error messages.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Sun, 04 Sep 2005 14:47:02 -0700 |
parents | 66f7d3946109 |
children | 08c7851969cc |
line wrap: on
line diff
--- a/tests/test-commit.out Sun Sep 04 14:45:03 2005 -0700 +++ b/tests/test-commit.out Sun Sep 04 14:47:02 2005 -0700 @@ -1,90 +1,15 @@ -Traceback (most recent call last): - File "/tmp/hgtests.22041.15131.11536.3935/install/bin/hg", line 13, in ? - commands.run() - File "/tmp/hgtests.22041.15131.11536.3935/install/lib/python/mercurial/commands.py", line 1809, in run - sys.exit(dispatch(sys.argv[1:])) - File "/tmp/hgtests.22041.15131.11536.3935/install/lib/python/mercurial/commands.py", line 1945, in dispatch - return d() - File "/tmp/hgtests.22041.15131.11536.3935/install/lib/python/mercurial/commands.py", line 1930, in <lambda> - d = lambda: func(u, repo, *args, **cmdoptions) - File "/tmp/hgtests.22041.15131.11536.3935/install/lib/python/mercurial/commands.py", line 663, in commit - repo.commit(files, message, opts['user'], opts['date'], match) - File "/tmp/hgtests.22041.15131.11536.3935/install/lib/python/mercurial/localrepo.py", line 398, in commit - n = self.changelog.add(mn, changed, text, tr, p1, p2, user, date) - File "/tmp/hgtests.22041.15131.11536.3935/install/lib/python/mercurial/changelog.py", line 42, in add - raise ValueError('impossible time zone offset: %d' % offset) -ValueError: impossible time zone offset: 4444444 transaction abort! rollback completed -Traceback (most recent call last): - File "/tmp/hgtests.22041.15131.11536.3935/install/bin/hg", line 13, in ? - commands.run() - File "/tmp/hgtests.22041.15131.11536.3935/install/lib/python/mercurial/commands.py", line 1809, in run - sys.exit(dispatch(sys.argv[1:])) - File "/tmp/hgtests.22041.15131.11536.3935/install/lib/python/mercurial/commands.py", line 1945, in dispatch - return d() - File "/tmp/hgtests.22041.15131.11536.3935/install/lib/python/mercurial/commands.py", line 1930, in <lambda> - d = lambda: func(u, repo, *args, **cmdoptions) - File "/tmp/hgtests.22041.15131.11536.3935/install/lib/python/mercurial/commands.py", line 663, in commit - repo.commit(files, message, opts['user'], opts['date'], match) - File "/tmp/hgtests.22041.15131.11536.3935/install/lib/python/mercurial/localrepo.py", line 398, in commit - n = self.changelog.add(mn, changed, text, tr, p1, p2, user, date) - File "/tmp/hgtests.22041.15131.11536.3935/install/lib/python/mercurial/changelog.py", line 38, in add - when, offset = map(int, date.split(' ')) -ValueError: invalid literal for int(): 1 15.1 +abort: impossible time zone offset: 4444444 +transaction abort! +rollback completed +abort: invalid date: '1\t15.1' transaction abort! rollback completed -Traceback (most recent call last): - File "/tmp/hgtests.22041.15131.11536.3935/install/bin/hg", line 13, in ? - commands.run() - File "/tmp/hgtests.22041.15131.11536.3935/install/lib/python/mercurial/commands.py", line 1809, in run - sys.exit(dispatch(sys.argv[1:])) - File "/tmp/hgtests.22041.15131.11536.3935/install/lib/python/mercurial/commands.py", line 1945, in dispatch - return d() - File "/tmp/hgtests.22041.15131.11536.3935/install/lib/python/mercurial/commands.py", line 1930, in <lambda> - d = lambda: func(u, repo, *args, **cmdoptions) - File "/tmp/hgtests.22041.15131.11536.3935/install/lib/python/mercurial/commands.py", line 663, in commit - repo.commit(files, message, opts['user'], opts['date'], match) - File "/tmp/hgtests.22041.15131.11536.3935/install/lib/python/mercurial/localrepo.py", line 398, in commit - n = self.changelog.add(mn, changed, text, tr, p1, p2, user, date) - File "/tmp/hgtests.22041.15131.11536.3935/install/lib/python/mercurial/changelog.py", line 38, in add - when, offset = map(int, date.split(' ')) -ValueError: invalid literal for int(): foo +abort: invalid date: 'foo bar' transaction abort! rollback completed -Traceback (most recent call last): - File "/tmp/hgtests.22041.15131.11536.3935/install/bin/hg", line 13, in ? - commands.run() - File "/tmp/hgtests.22041.15131.11536.3935/install/lib/python/mercurial/commands.py", line 1809, in run - sys.exit(dispatch(sys.argv[1:])) - File "/tmp/hgtests.22041.15131.11536.3935/install/lib/python/mercurial/commands.py", line 1945, in dispatch - return d() - File "/tmp/hgtests.22041.15131.11536.3935/install/lib/python/mercurial/commands.py", line 1930, in <lambda> - d = lambda: func(u, repo, *args, **cmdoptions) - File "/tmp/hgtests.22041.15131.11536.3935/install/lib/python/mercurial/commands.py", line 663, in commit - repo.commit(files, message, opts['user'], opts['date'], match) - File "/tmp/hgtests.22041.15131.11536.3935/install/lib/python/mercurial/localrepo.py", line 398, in commit - n = self.changelog.add(mn, changed, text, tr, p1, p2, user, date) - File "/tmp/hgtests.22041.15131.11536.3935/install/lib/python/mercurial/changelog.py", line 38, in add - when, offset = map(int, date.split(' ')) -ValueError: invalid literal for int(): +abort: invalid date: ' 1 4444' transaction abort! rollback completed -Traceback (most recent call last): - File "/tmp/hgtests.22041.15131.11536.3935/install/bin/hg", line 13, in ? - commands.run() - File "/tmp/hgtests.22041.15131.11536.3935/install/lib/python/mercurial/commands.py", line 1809, in run - sys.exit(dispatch(sys.argv[1:])) - File "/tmp/hgtests.22041.15131.11536.3935/install/lib/python/mercurial/commands.py", line 1945, in dispatch - return d() - File "/tmp/hgtests.22041.15131.11536.3935/install/lib/python/mercurial/commands.py", line 1930, in <lambda> - d = lambda: func(u, repo, *args, **cmdoptions) - File "/tmp/hgtests.22041.15131.11536.3935/install/lib/python/mercurial/commands.py", line 663, in commit - repo.commit(files, message, opts['user'], opts['date'], match) - File "/tmp/hgtests.22041.15131.11536.3935/install/lib/python/mercurial/localrepo.py", line 398, in commit - n = self.changelog.add(mn, changed, text, tr, p1, p2, user, date) - File "/tmp/hgtests.22041.15131.11536.3935/install/lib/python/mercurial/changelog.py", line 40, in add - raise ValueError('date exceeds 32 bits: %d' % when) -ValueError: date exceeds 32 bits: 111111111111 -transaction abort! -rollback completed +abort: date exceeds 32 bits: 111111111111