Mercurial > hg
diff tests/bundles/rename.sh @ 16551:ebf6d38c9063 stable
localrepo: add setparents() to adjust dirstate copies (issue3407)
The fix introduced in eab9119c5dee was only partially successful. It is correct
to turn dirstate 'm' merge records into normal/dirty ones but copy records are
lost in the process. To adjust them as well, we need to look in the first
parent manifest to know which files were added and preserve only related
records. But the dirstate does not have access to changesets, the logic has to
moved at another level, in localrepo.
author | Patrick Mezard <patrick@mezard.eu> |
---|---|
date | Sun, 29 Apr 2012 22:25:55 +0200 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/bundles/rename.sh Sun Apr 29 22:25:55 2012 +0200 @@ -0,0 +1,30 @@ +#!/bin/sh + +# @ 3: 'move2' +# | +# o 2: 'move1' +# | +# | o 1: 'change' +# |/ +# o 0: 'add' + +hg init copies +cd copies +echo a > a +echo b > b +echo c > c +hg ci -Am add +echo a >> a +echo b >> b +echo c >> c +hg ci -m change +hg up -qC 0 +hg cp a d +hg mv b e +hg mv c f +hg ci -m move1 +hg mv e g +hg mv f c +hg ci -m move2 +hg bundle -a ../renames.hg +cd ..