#161: git target fails on rename
---------------------+------------------------------------------------------
Reporter: jhs | Owner: lele
Type: defect | Status: new
Priority: major | Milestone: VersionOne
Component: git | Version: 0.9
Resolution: | Keywords: rename
---------------------+------------------------------------------------------
Comment(by jhs):
Whoops, I submitted too soon.
The attached file is Strangle-bzr2git.conf. Notice that for changeset 73,
tailor dies with an exception saying (in my case):
{{{
14:22:38 [I] /home/jhs/src/Strangle-git/Strangle.git $ git add Strangle
14:22:38 [W] [Status 128]
14:22:38 [E] Failure replaying: Revision: [EMAIL PROTECTED]
corporation.com-20080124065450-2f15i74u6u2afi8y
Date: 2008-01-24 13:54:50.723000+07:00
Author: Jason Smith <[EMAIL PROTECTED]>
Entries: Strangle[DIR](REN from Constrict), test/testStrangle.py(REN from
test/testConstrict.py), README(UPD), Strangle/__init__.py(UPD),
Strangle/libbind.c(UPD), setup.py(UPD), test/allTests.py(UPD),
test/print.py(UPD), test/testlibbind.py(UPD),
test/testlibbind_ns_msg.py(UPD), test/testlibbind_ns_rr.py(UPD),
test/testutils.py(UPD)
Log: Rename all "Constrict" to "Strangle"
Traceback (most recent call last):
File "/home/jhs/src/tailor/run/lib/python2.5/site-
packages/tailor-0.9.35-py2.5.egg/vcpx/target.py", line 134, in
replayChangeset
self._replayChangeset(changeset)
File "/home/jhs/src/tailor/run/lib/python2.5/site-
packages/tailor-0.9.35-py2.5.egg/vcpx/target.py", line 330, in
_replayChangeset
action(group)
File "/home/jhs/src/tailor/run/lib/python2.5/site-
packages/tailor-0.9.35-py2.5.egg/vcpx/target.py", line 502, in
_renameEntries
self._renamePathname(e.old_name, e.name)
File "/home/jhs/src/tailor/run/lib/python2.5/site-
packages/tailor-0.9.35-py2.5.egg/vcpx/repository/git/target.py", line 259,
in _renamePathname
self.repository.runCommand(['add', newname])
File "/home/jhs/src/tailor/run/lib/python2.5/site-
packages/tailor-0.9.35-py2.5.egg/vcpx/repository/git/__init__.py", line
77, in runCommand
raise exception(str(c) + ' failed')
Exception: /home/jhs/src/Strangle-git/Strangle.git $ git add Strangle
failed
14:22:38 [C] Couldn't replay changeset:
}}}
Finally, the attached patch did get my conversion to work; however I am
unfamiliar with the Tailor API and architecture, so I am not certain
whether this is the correct solution.
Thanks.
--
Ticket URL: <http://progetti.arstecnica.it/tailor/ticket/161#comment:1>
Tailor <http://progetti.arstecnica.it/tailor>
An inter-VCs changeset exchanger
_______________________________________________
Tailor mailing list
[email protected]
http://lists.zooko.com/mailman/listinfo/tailor