Mercurial > hg
comparison tests/test-rollback.t @ 13958:71f51cc71652 stable
hgweb: detect change based on changelog size too
Before, there was a race between an access and a modification made
within the same second.
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Tue, 19 Apr 2011 15:15:56 +0200 |
parents | 044e1356327d |
children | 141f88ae5276 |
comparison
equal
deleted
inserted
replaced
13957:044e1356327d | 13958:71f51cc71652 |
---|---|
90 abort: pretxncommit hook exited with status * (glob) | 90 abort: pretxncommit hook exited with status * (glob) |
91 [255] | 91 [255] |
92 $ cat .hg/last-message.txt | 92 $ cat .hg/last-message.txt |
93 another precious commit message | 93 another precious commit message |
94 | 94 |
95 test rollback on served repository | |
96 | |
97 $ hg commit -m "precious commit message" | |
98 $ hg serve -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log | |
99 $ cat hg.pid >> $DAEMON_PIDS | |
100 $ cd .. | |
101 $ hg clone http://localhost:$HGPORT u | |
102 requesting all changes | |
103 adding changesets | |
104 adding manifests | |
105 adding file changes | |
106 added 1 changesets with 1 changes to 1 files | |
107 updating to branch test | |
108 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
109 $ cd u | |
110 $ hg id default | |
111 1df294f7b1a2 | |
112 | |
113 now rollback and observe that 'hg serve' reloads the repository and | |
114 presents the correct tip changeset: | |
115 | |
116 $ hg -R ../t rollback | |
117 repository tip rolled back to revision -1 (undo commit) | |
118 working directory now based on revision -1 | |
119 $ hg id default | |
120 000000000000 |