Re: AttributeError: 'NoneType' object has no attribute 'remove_unneeded_initial_trunk_delete'
Nikola Radovanovic <[email protected]> Mon, 12 May 2014 07:54:40 +0000
| Newsgroups | gmane.comp.version-control.subversion.cvs2svn.user |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_1109_697090794.1399887790259
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Hi,
thank you for quick response and sorry i have not read FAQ first :(
After following your instructions (running shrink_test_case.py and cvs2svn =
--dry-run /path/to/copy/of/repo) - i was unable to reproduce the bug.
I talked to our DB team and seems that history of that file was corrupted. =
sorry for fake alert.
keep up the good work
best regards
On 05/09/2014 05:42 PM, Michael Haggerty wrote:
On 05/08/2014 05:04 PM, Nikola Radovanovic wrote:
i have tried cvs2git on trunk (2.5.0-dev) and also 2.3.0 and i got the
same error when running: cvs2git --options=3Dcvs2git.options (options file
is attached in this email. unfortunately, failing file is too large to
be attached). It seems like there is some problem (unhandled error) in
cvs2git, but I'm not sure. I have used cvs2git in about 6 or 7 /really
large/ CVS to GIT transformations with no such problem.
I will resolve this problem by omitting failing file and add it later
manually (only one branch, so no problem); but maybe you can find
something useful to improve code if there is a problem
ERROR:
'/media/Prenosivi/to_convert/cvsroot/DMS_DB/ERwin/BACKUP_CLEAN_ALL_SER.ER1,=
v'
is not a valid ,v file
Traceback (most recent call last):
File "cvs2git", line 70, in <module>
git_main(os.path.basename(sys.argv[0]), sys.argv[1:])
File "/media/Prenosivi/cvs2svn-trunk/cvs2svn_lib/main.py", line 124,
in git_main
main(progname, run_options, pass_manager)
File "/media/Prenosivi/cvs2svn-trunk/cvs2svn_lib/main.py", line 101,
in main
pass_manager.run(run_options)
File "/media/Prenosivi/cvs2svn-trunk/cvs2svn_lib/pass_manager.py",
line 255, in run
the_pass.run(run_options, stats_keeper)
File "/media/Prenosivi/cvs2svn-trunk/cvs2svn_lib/passes.py", line 109,
in run
walk_repository(project, file_key_generator, cd.record_fatal_error),
File "/media/Prenosivi/cvs2svn-trunk/cvs2svn_lib/collect_data.py",
line 1169, in process_project
self._process_cvs_file_items(cvs_file_items)
File "/media/Prenosivi/cvs2svn-trunk/cvs2svn_lib/collect_data.py",
line 1144, in _process_cvs_file_items
cvs_file_items.remove_unneeded_initial_trunk_delete(self.metadata_db)
AttributeError: 'NoneType' object has no attribute
'remove_unneeded_initial_trunk_delete'
many thanks in advance and best regards
Thanks for the bug report.
Would you please send a test case? That really makes it a lot easier to
figure out and fix bugs like this. The FAQ [1] describes how you can
shrink your failing file down to a small size and strip proprietary
information out if it.
Thanks,
Michael
[1] http://cvs2svn.tigris.org/faq.html#testcase
--
___________________________________________________________________________=
_______________________________________
Nikola Radovanovic | Schneider Electric DMS NS | Smart Grid IT | SERBIA | C=
PASv2 team deputy
Phone: +381 (0)21 488 3633 | Fax: +381 (0)21 488 3789 | Mobile: +381 (0)64 =
29 74 528
Email: [email protected]<mailto:nikola.radovano=
[email protected]> | Site: www.schneider-electric-dms.com<http=
://www.schneider-electric-dms.com/> | Address: Narodnog fronta 25A-D, 21000=
Novi Sad
*** Please consider the environment before printing this e-mail
------------------------------------------------------
http://cvs2svn.tigris.org/ds/viewMessage.do?dsForumId=3D1670&dsMessageId=3D=
3078137
To unsubscribe from this discussion, e-mail: [[email protected]=
ris.org].
------=_Part_1109_697090794.1399887790259
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-ID: <[email protected]>
<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
1">
</head>
<body bgcolor=3D"#FFFFFF" text=3D"#000000">
Hi,<br>
thank you for quick response and sorry i have not read FAQ first :(<br>
<br>
After following your instructions (running <font color=3D"#3366ff">shrink_t=
est_case.py</font> and
<font color=3D"#3366ff">cvs2svn --dry-run /path/to/copy/of/repo</font>) - i=
was unable to reproduce the bug.<br>
I talked to our DB team and seems that history of that file was corrupted. =
sorry for fake alert.<br>
<br>
keep up the good work<br>
<br>
best regards<br>
<br>
<div class=3D"moz-cite-prefix">On 05/09/2014 05:42 PM, Michael Haggerty wro=
te:<br>
</div>
<blockquote cite=3D"mid:[email protected]" type=3D"cite">
<pre wrap=3D"">On 05/08/2014 05:04 PM, Nikola Radovanovic wrote:
</pre>
<blockquote type=3D"cite">
<pre wrap=3D"">i have tried cvs2git on trunk (2.5.0-dev) and also 2.3.0 and=
i got the
same error when running: cvs2git --options=3Dcvs2git.options (options file
is attached in this email. unfortunately, failing file is too large to
be attached). It seems like there is some problem (unhandled error) in
cvs2git, but I'm not sure. I have used cvs2git in about 6 or 7 /really
large/ CVS to GIT transformations with no such problem.
I will resolve this problem by omitting failing file and add it later
manually (only one branch, so no problem); but maybe you can find
something useful to improve code if there is a problem
ERROR:
'/media/Prenosivi/to_convert/cvsroot/DMS_DB/ERwin/BACKUP_CLEAN_ALL_SER.ER1,=
v'
is not a valid ,v file
Traceback (most recent call last):
File "cvs2git", line 70, in <module>
git_main(os.path.basename(sys.argv[0]), sys.argv[1:])
File "/media/Prenosivi/cvs2svn-trunk/cvs2svn_lib/main.py", line=
124,
in git_main
main(progname, run_options, pass_manager)
File "/media/Prenosivi/cvs2svn-trunk/cvs2svn_lib/main.py", line=
101,
in main
pass_manager.run(run_options)
File "/media/Prenosivi/cvs2svn-trunk/cvs2svn_lib/pass_manager.py&quo=
t;,
line 255, in run
the_pass.run(run_options, stats_keeper)
File "/media/Prenosivi/cvs2svn-trunk/cvs2svn_lib/passes.py", li=
ne 109,
in run
walk_repository(project, file_key_generator, cd.record_fatal_error),
File "/media/Prenosivi/cvs2svn-trunk/cvs2svn_lib/collect_data.py&quo=
t;,
line 1169, in process_project
self._process_cvs_file_items(cvs_file_items)
File "/media/Prenosivi/cvs2svn-trunk/cvs2svn_lib/collect_data.py&quo=
t;,
line 1144, in _process_cvs_file_items
cvs_file_items.remove_unneeded_initial_trunk_delete(self.metadata_db)
AttributeError: 'NoneType' object has no attribute
'remove_unneeded_initial_trunk_delete'
many thanks in advance and best regards
</pre>
</blockquote>
<pre wrap=3D"">
Thanks for the bug report.
Would you please send a test case? That really makes it a lot easier to
figure out and fix bugs like this. The FAQ [1] describes how you can
shrink your failing file down to a small size and strip proprietary
information out if it.
Thanks,
Michael
[1] <a class=3D"moz-txt-link-freetext" href=3D"http://cvs2svn.tigris.org/fa=
q.html#testcase">http://cvs2svn.tigris.org/faq.html#testcase</a>
</pre>
</blockquote>
<br>
<div class=3D"moz-signature">-- <br>
<span style=3D"font-size: 7.5pt; font-family:
"Arial","sans-serif"; color: green;">__________=
___________________________________________________________________________=
_____________________________</span><span style=3D"font-size: 7.5pt; font-f=
amily:
"Arial","sans-serif";"><o:p></o:p></span>
<div class=3D"WordSection1">
<p class=3D"MsoNormal" style=3D"text-align: justify;"><span style=3D"font-s=
ize: 7.5pt; font-family:
"Arial","sans-serif";"><o:p> </o:p></s=
pan></p>
<p class=3D"MsoNormal" style=3D"text-align: justify;"><b><span style=3D"fon=
t-size: 7.5pt; font-family:
"Arial","sans-serif"; color: black;">Niko=
la Radovanovic |
</span></b><b><span style=3D"font-size: 7.5pt;
font-family: "Arial","sans-serif";
color: green;">Schneider Electric DMS NS</span></b><b><span s=
tyle=3D"font-size:
7.5pt; font-family:
"Arial","sans-serif"; color: black;">
| Smart Grid IT | SERBIA | CPASv2 team deputy</span></b><span style=3D"fon=
t-size: 7.5pt; font-family:
"Arial","sans-serif";"><o:p></o:p></span></=
p>
<p class=3D"MsoNormal" style=3D"text-align: justify;"><b><span style=3D"fon=
t-size: 7.5pt; font-family:
"Arial","sans-serif"; color: black;">Phon=
e:</span></b><span style=3D"font-size: 7.5pt; font-family:
"Arial","sans-serif"; color: black;">
+381 (0)21 488 3633<b> | Fax:</b> +381 (0)21 488 3789<b> | Mobile:=
</b> +381 (0)64 29 74 528</span><span style=3D"font-size: 7.5pt;
font-family: "Arial","sans-serif";"><o:p></=
o:p></span></p>
<p class=3D"MsoNormal" style=3D"text-align: justify;"><b><span style=3D"fon=
t-size: 7.5pt; font-family:
"Arial","sans-serif"; color: black;">Emai=
l:</span></b><span style=3D"font-size: 7.5pt; font-family:
"Arial","sans-serif"; color: black;">
</span><span style=3D"font-size: 7.5pt; font-family:
"Arial","sans-serif";"><a href=3D"mailto:ni=
[email protected]"><span style=3D"color: blue;">n=
[email protected]</span></a><b>
<span style=3D"color: black;">| Site: </span></b><a href=3D"http://www.schn=
eider-electric-dms.com/"><span style=3D"color: blue;">www.schneider-electri=
c-dms.com</span></a><b>
<span style=3D"color: black;">| Address:</span></b><span style=3D"color: bl=
ack;"> Narodnog fronta 25A-D, 21000 Novi Sad</span><o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"text-align: justify;"><span style=3D"font-s=
ize: 7.5pt; font-family:
"Arial","sans-serif"; color: rgb(0, 160,
0);">*** Please consider the environment before printing this e=
-mail</span><span style=3D"font-size: 7.5pt; font-family:
"Arial","sans-serif";"><o:p></o:p></span></=
p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>
------=_Part_1109_697090794.1399887790259--