#142: Delete + rename bzr
--------------------+-------------------------------------------------------
Reporter: cory | Owner: lele
Type: defect | Status: new
Priority: major | Milestone: VersionOne
Component: bzr | Version: 0.9
Keywords: |
--------------------+-------------------------------------------------------
I was experimenting with moving from p4 to bzr with tailor 0.9.29. I ran
into a few troublesome changesets that essentially all involved renaming a
directory containing some files. bzr.py tried to move the files back to
the no longer existing source directory so that it could re-move them
through bzrlib and failed. I got the error: "Cannot rename ''newpath''
back to ''oldpath''."
This looks somewhat similar to #113, #65, and #83.
I worked around it by removing the ten or so lines from _renamePathname in
bzr.py that moved the file back to its old location and changed
{{{
#!python
self._working_tree.rename_one(oldname, newname)
}}}
to
{{{
#!python
self._working_tree.rename_one(oldname, newname, True)
}}}
That should effectively be the same as ''bzr mv --already'' which naively
seems to me to be the right thing to do in this situation.
I don't know a whole lot about what else is going on, but that one change
allowed me to convert a substantially large perforce repository over to
bzr.
--
Ticket URL: <http://progetti.arstecnica.it/tailor/ticket/142>
Tailor <http://progetti.arstecnica.it/tailor>
An inter-VCs changeset exchanger
_______________________________________________
Tailor mailing list
[email protected]
http://lists.zooko.com/mailman/listinfo/tailor