[issue1505] hg convert bzr to hg: doesn't handle file rename correctly

Xavier ALT mercurial-bugs at selenic.com
Sun Feb 8 14:18:11 CST 2009


New submission from Xavier ALT <dex at phoenix-ind.net>:

Converting a bazaar to mercurial repositories doesn't seem to work correctly.
Rename doesn't delete original file, so we end up with two files.

Steps to reproduce the problem:
Le script a débuté sur dim. 08 févr. 2009 21:04:52 CET
[dex at ankaa test1]$ mkdir bzr1
[dex at ankaa test1]$ cd bzr1
[dex at ankaa bzr1]$ bzr init
Standalone tree (format: pack-0.92)
Location:
  branch root: .
[dex at ankaa bzr1]$ touch test.txt
[dex at ankaa bzr1]$ bzr add
added test.txt
[dex at ankaa bzr1]$ bzr commit -m 'add test.txt'
Committing to: /home/dex/w/convert/test1/bzr1/
added test.txt
Committed revision 1.
[dex at ankaa bzr1]$ bzr rename test.txt test.doc
test.txt => test.doc
[dex at ankaa bzr1]$ bzr commit -m 'rename test.txt to test.doc'
Committing to: /home/dex/w/convert/test1/bzr1/
renamed test.txt => test.doc
Committed revision 2.
[dex at ankaa bzr1]$ hg convert -s bzr . ../hg1
initializing destination ../hg1 repository
scanning source...
sorting...
converting...
1 add test.txt
0 rename test.txt to test.doc
[dex at ankaa bzr1]$ cd ../hg1
[dex at ankaa hg1]$ hg update
2 files updated, 0 files merged, 0 files removed, 0 files unresolved
[dex at ankaa hg1]$ ls -l
total 0
-rw-rw-r-- 1 dex dex 0 févr.  8 21:06 test.doc
-rw-rw-r-- 1 dex dex 0 févr.  8 21:06 test.txt

Script complété sur dim. 08 févr. 2009 21:06:21 CET

----------
messages: 8566
nosy: dex
priority: bug
status: unread
title: hg convert bzr to hg: doesn't handle file rename correctly

____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue1505>
____________________________________________________



More information about the Mercurial-devel mailing list