Mercurial > hg-stable
changeset 6936:b4749456d306
Merge with Gilles Moris
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Sun, 24 Aug 2008 22:40:34 +0200 |
parents | 03916abdfb64 (current diff) 17bdcd59b9ad (diff) |
children | 3aa8ad0e03ba |
files | tests/test-keyword.out |
diffstat | 3 files changed, 53 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/keyword.py Fri Aug 22 22:32:53 2008 +0200 +++ b/hgext/keyword.py Sun Aug 24 22:40:34 2008 +0200 @@ -94,7 +94,7 @@ # hg commands that trigger expansion only when writing to working dir, # not when reading filelog, and unexpand when reading from working dir -restricted = 'record qfold qimport qnew qpush qrefresh qrecord' +restricted = 'merge record resolve qfold qimport qnew qpush qrefresh qrecord' def utcdate(date): '''Returns hgdate in cvs-like UTC format.'''
--- a/tests/test-keyword Fri Aug 22 22:32:53 2008 +0200 +++ b/tests/test-keyword Sun Aug 24 22:40:34 2008 +0200 @@ -301,6 +301,31 @@ echo % errors encountered cat errors.log +echo % merge/resolve +echo '$Id$' > m +hg add m +hg commit -m 4kw +echo foo >> m +hg commit -m 5foo +echo % simplemerge +hg update 4 +echo foo >> m +hg commit -m 6foo +hg merge +hg commit -m simplemerge +cat m +echo % conflict +hg update 4 +echo bar >> m +hg commit -m 8bar +hg merge +echo % keyword stays outside conflict zone +cat m +echo % resolve to local +HGMERGE=internal:local hg resolve +hg commit -m localresolve +cat m + echo % switch off expansion echo % kwshrink with unknown file u cp a u
--- a/tests/test-keyword.out Fri Aug 22 22:32:53 2008 +0200 +++ b/tests/test-keyword.out Sun Aug 24 22:40:34 2008 +0200 @@ -437,9 +437,36 @@ % errors encountered +% merge/resolve +% simplemerge +1 files updated, 0 files merged, 0 files removed, 0 files unresolved +created new head +0 files updated, 0 files merged, 0 files removed, 0 files unresolved +(branch merge, don't forget to commit) +$Id: m 8731e1dadc99 Thu, 01 Jan 1970 00:00:00 +0000 test $ +foo +% conflict +1 files updated, 0 files merged, 0 files removed, 0 files unresolved +created new head +merging m +warning: conflicts during merge. +merging m failed! +0 files updated, 0 files merged, 0 files removed, 1 files unresolved +use 'hg resolve' to retry unresolved file merges +% keyword stays outside conflict zone +$Id$ +<<<<<<< local +bar +======= +foo +>>>>>>> other +% resolve to local +$Id: m 43dfd2854b5b Thu, 01 Jan 1970 00:00:00 +0000 test $ +bar % switch off expansion % kwshrink with unknown file u overwriting a shrinking keywords +overwriting m shrinking keywords overwriting x/a shrinking keywords % cat expand $Id$