#69: git to darcs broken in multiple ways
-----------------------+----------------------------------------------------
Reporter: jgoerzen | Owner: lele
Type: defect | Status: new
Priority: major | Milestone: VersionOne
Component: git | Version: 0.9
Resolution: | Keywords:
-----------------------+----------------------------------------------------
Changes (by lele):
* component: tailor => git
Old description:
> This is with 0.9.23.
>
> I am using tailor to convert a Linux kernel repo over to darcs.
>
> After awhile, I see:
>
> 12:57:22 [I] [Ok]
> 12:57:22 [I] /home/jgoerzen/work/git2/work $ git rev-list --max-count=1
> v2.6.17.7
> 12:57:22 [I] [Ok]
> 12:57:22 [I] /home/jgoerzen/work/git2/work $ git rev-list --max-count=1
> v2.6.17.8
> 12:57:22 [I] [Ok]
> 12:57:22 [I] /home/jgoerzen/work/git2/work $ git rev-list --max-count=1
> excel-2.6.16.27-before-backports
> 12:57:22 [I] [Ok]
> 12:57:22 [I] Updating to revision
> 6b9269abd64c54f11dc4aaf162d2915fccae6c77
> 12:57:22 [I] /home/jgoerzen/work/git2/work $ git rev-list --pretty=raw
> --max-count=1 6b9269abd64c54f11dc4aaf162d2915fccae6c77
> 12:57:22 [I] [Ok]
> 12:57:22 [I] /home/jgoerzen/work/git2/work $ git diff-tree --root -r -M
> --name-status ad6571a78ac74e9fa27e581834709067dba459af
> 6b9269abd64c54f11dc4aaf162d2915fccae6c77
> 12:57:22 [I] [Ok]
> 12:57:22 [C] Unable to get changes for "project"
> Traceback (most recent call last):
> File "/usr/bin/tailor", line 33, in ?
> main()
> File "/var/lib/python-support/python2.4/vcpx/tailor.py", line 332, in
> main
> tailorizer()
> File "/var/lib/python-support/python2.4/vcpx/tailor.py", line 144, in
> __call__
> self.update()
> File "/var/lib/python-support/python2.4/vcpx/tailor.py", line 94, in
> update
> pendings = dwd.getPendingChangesets()
> File "/var/lib/python-support/python2.4/vcpx/source.py", line 213, in
> getPendingChangesets
> self.state_file.setPendingChangesets(changesets)
> File "/var/lib/python-support/python2.4/vcpx/statefile.py", line 253,
> in setPendingChangesets
> self._write(changesets)
> File "/var/lib/python-support/python2.4/vcpx/statefile.py", line 86, in
> _write
> for cs in changesets:
> File "/var/lib/python-support/python2.4/vcpx/git.py", line 58, in
> _getUpstreamChangesets
> yield self._changesetForRevision(rev)
> File "/var/lib/python-support/python2.4/vcpx/git.py", line 122, in
> _changesetForRevision
> e.action_kind = action_map[state[0]]
> KeyError: 'C'
>
> If I try to re-run git at this point, it will migrate a couple of
> changesets over, but eventually die at what appears to be a rename.
>
> My config is:
>
> [DEFAULT]
> verbose = True
>
> [project]
> target = darcs:target
> start-revision = INITIAL
> root-directory = /home/jgoerzen/work/git2/work
> state-file = tailor.state
> source = git:source
> subdir = .
>
> [git:source]
> repository = /home/jgoerzen/work/git2/linux-2.6
> branch=master
>
> [darcs:target]
> repository = /home/jgoerzen/work/git2/linux-2.6-darcs
New description:
This is with 0.9.23.
I am using tailor to convert a Linux kernel repo over to darcs.
After awhile, I see:
{{{
12:57:22 [I] [Ok]
12:57:22 [I] /home/jgoerzen/work/git2/work $ git rev-list --max-count=1
v2.6.17.7
12:57:22 [I] [Ok]
12:57:22 [I] /home/jgoerzen/work/git2/work $ git rev-list --max-count=1
v2.6.17.8
12:57:22 [I] [Ok]
12:57:22 [I] /home/jgoerzen/work/git2/work $ git rev-list --max-count=1
excel-2.6.16.27-before-backports
12:57:22 [I] [Ok]
12:57:22 [I] Updating to revision 6b9269abd64c54f11dc4aaf162d2915fccae6c77
12:57:22 [I] /home/jgoerzen/work/git2/work $ git rev-list --pretty=raw
--max-count=1 6b9269abd64c54f11dc4aaf162d2915fccae6c77
12:57:22 [I] [Ok]
12:57:22 [I] /home/jgoerzen/work/git2/work $ git diff-tree --root -r -M
--name-status ad6571a78ac74e9fa27e581834709067dba459af
6b9269abd64c54f11dc4aaf162d2915fccae6c77
12:57:22 [I] [Ok]
12:57:22 [C] Unable to get changes for "project"
Traceback (most recent call last):
File "/usr/bin/tailor", line 33, in ?
main()
File "/var/lib/python-support/python2.4/vcpx/tailor.py", line 332, in
main
tailorizer()
File "/var/lib/python-support/python2.4/vcpx/tailor.py", line 144, in
__call__
self.update()
File "/var/lib/python-support/python2.4/vcpx/tailor.py", line 94, in
update
pendings = dwd.getPendingChangesets()
File "/var/lib/python-support/python2.4/vcpx/source.py", line 213, in
getPendingChangesets
self.state_file.setPendingChangesets(changesets)
File "/var/lib/python-support/python2.4/vcpx/statefile.py", line 253, in
setPendingChangesets
self._write(changesets)
File "/var/lib/python-support/python2.4/vcpx/statefile.py", line 86, in
_write
for cs in changesets:
File "/var/lib/python-support/python2.4/vcpx/git.py", line 58, in
_getUpstreamChangesets
yield self._changesetForRevision(rev)
File "/var/lib/python-support/python2.4/vcpx/git.py", line 122, in
_changesetForRevision
e.action_kind = action_map[state[0]]
KeyError: 'C'
}}}
If I try to re-run git at this point, it will migrate a couple of
changesets over, but eventually die at what appears to be a rename.
My config is:
{{{
[DEFAULT]
verbose = True
[project]
target = darcs:target
start-revision = INITIAL
root-directory = /home/jgoerzen/work/git2/work
state-file = tailor.state
source = git:source
subdir = .
[git:source]
repository = /home/jgoerzen/work/git2/linux-2.6
branch=master
[darcs:target]
repository = /home/jgoerzen/work/git2/linux-2.6-darcs
}}}
Comment:
Fixed markup.
--
Ticket URL: <http://progetti.arstecnica.it/tailor/ticket/69#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