tests/test-commit.out
author Vadim Gelfer <vadim.gelfer@gmail.com>
Fri, 28 Apr 2006 15:50:22 -0700
changeset 2155 ff255b41b4aa
parent 1809 ef53d200df3d
child 3257 c9cd63a6fce9
permissions -rw-r--r--
support hooks written in python. to write hook in python, create module with hook function inside. make sure mercurial can import module (put it in $PYTHONPATH or load it as extension). hook function should look like this: def myhook(ui, repo, hooktype, **kwargs): if hook_passes: return True elif hook_explicitly_fails: return False elif some_other_failure: import util raise util.Abort('helpful failure message') else: return # implicit return of None makes hook fail! then in .hgrc, add hook with "python:" prefix: [hooks] commit = python:mymodule.myhook
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1202
71111d796e40 Commit date validation: more stringent checks, more useful error messages.
Bryan O'Sullivan <bos@serpentine.com>
parents: 1198
diff changeset
     1
abort: impossible time zone offset: 4444444
71111d796e40 Commit date validation: more stringent checks, more useful error messages.
Bryan O'Sullivan <bos@serpentine.com>
parents: 1198
diff changeset
     2
transaction abort!
71111d796e40 Commit date validation: more stringent checks, more useful error messages.
Bryan O'Sullivan <bos@serpentine.com>
parents: 1198
diff changeset
     3
rollback completed
71111d796e40 Commit date validation: more stringent checks, more useful error messages.
Bryan O'Sullivan <bos@serpentine.com>
parents: 1198
diff changeset
     4
abort: invalid date: '1\t15.1'
1198
66f7d3946109 Add test output.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
     5
transaction abort!
66f7d3946109 Add test output.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
     6
rollback completed
1202
71111d796e40 Commit date validation: more stringent checks, more useful error messages.
Bryan O'Sullivan <bos@serpentine.com>
parents: 1198
diff changeset
     7
abort: invalid date: 'foo bar'
1198
66f7d3946109 Add test output.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
     8
transaction abort!
66f7d3946109 Add test output.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
     9
rollback completed
1202
71111d796e40 Commit date validation: more stringent checks, more useful error messages.
Bryan O'Sullivan <bos@serpentine.com>
parents: 1198
diff changeset
    10
abort: invalid date: ' 1 4444'
1198
66f7d3946109 Add test output.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
    11
transaction abort!
66f7d3946109 Add test output.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
    12
rollback completed
1202
71111d796e40 Commit date validation: more stringent checks, more useful error messages.
Bryan O'Sullivan <bos@serpentine.com>
parents: 1198
diff changeset
    13
abort: date exceeds 32 bits: 111111111111
1809
ef53d200df3d Updated test-commit to match changed output caused by nested transactions.
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1488
diff changeset
    14
transaction abort!
ef53d200df3d Updated test-commit to match changed output caused by nested transactions.
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1488
diff changeset
    15
rollback completed
1488
08c7851969cc only files in normal state should be marked as deleted
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents: 1202
diff changeset
    16
abort: No such file or directory: .../test/bar