Mercurial > hg
view tests/test-convert-git @ 5228:8050f13772f6
Fix theoretical issue in filecommit.
If the file was copied, we don't want to reuse the original entry.
I think this is mostly a theoretical issue - when there are copies,
fp1 == nullid, so it's very unlikely that the fl.cmp(fp1, t) would
think the file was unmodified. In any case, if there was a copy,
we should forcefully create a new entry.
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Mon, 27 Aug 2007 14:21:04 -0300 |
parents | ceb6f242fb81 |
children | 5c2ca6d6ab21 |
line wrap: on
line source
#!/bin/sh "$TESTDIR/hghave" git || exit 80 echo "[extensions]" >> $HGRCPATH echo "convert=" >> $HGRCPATH mkdir git-repo cd git-repo git init echo a > a git add a git commit -m t1 > /dev/null || echo "git commit error" echo b >> a git commit -a -m t2 > /dev/null || echo "git commit error" cd .. hg convert git-repo