#39: parent dirs ordered after child dirs in large svn commit
---------------------+------------------------------------------------------
Reporter: pistos | Owner: lele
Type: defect | Status: reopened
Priority: major | Milestone: VersionOne
Component: cvs | Version: 0.9
Resolution: | Keywords:
---------------------+------------------------------------------------------
Comment (by licquia):
Hey, no problem. I understand how it is.
I think I may have a fix. It's in two parts.
_willApplyChangeset() in cvsps.py creates needed directories in CVS, but
doesn't add them to the changeset. So I deleted the entire function
(which seems to do nothing else), and moved directory creation into
_applyChangeset(). There was a case where updates are changed into adds
where this is done; I used that as a model.
That gets the directory add into the changeset, but after the file it's
trying to add (which is the original bug). So, I made it possible to
insert entries into a Changeset, and used that when adding directories so
they precede the files they contain.
It passes one of my tests. I test both cvs and cvsps, and for some
reason, the cvsps test has decided to throw EmptyRepositoryFoolsMe now
(where it didn't before). I'm going to see if I can figure that out.
All results so far are in my public bzr repo mentioned above.
--
Ticket URL: <http://progetti.arstecnica.it/tailor/ticket/39>
Tailor <http://progetti.arstecnica.it/tailor>
An inter-VCs changeset exchanger
_______________________________________________
Tailor mailing list
[email protected]
http://lists.zooko.com/mailman/listinfo/tailor