Re: Adding some functionality...
Sebastian Andersson <[email protected]> Wed, 7 Mar 2012 15:28:06 +0100
| Newsgroups | gmane.comp.version-control.cvs.tortoisecvs.user |
|---|---|
| Message-ID | <[email protected]> |
--===============6380097499236993875== Content-Type: multipart/alternative; boundary="_0b4497cb-99c8-491e-ab8e-2e90fcf8d6f6_" --_0b4497cb-99c8-491e-ab8e-2e90fcf8d6f6_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello! Thanks for this answer! The debugger has been great and I've come many more= steps forward! Since my goal is parsing out certain revisions from a group of files (that = meet chosen criteria)=2C my current challenge is to in a easy way somehow get the repository metadat= a for a group of files at the same time. E.g: function(List of files) -> returns List of revisions (with metadata=2C such as author/date/comment of revision). I have looked at how the History dialog works=2C but it just gets data for = one single file=2C and I do not understand how to take the next step. Do I have to do one CVS-action per file? Avoiding multiple pop-up windows w= ould be the best solution=2C but is this possible? Any help or tips would be great! Best regards=2C Sebastian Subject: RE: [TortoiseCVS] Adding some functionality... Date: Tue=2C 14 Feb 2012 09:12:01 +1100 From: arthur.barrett-qn/[email protected] To: [email protected]=3B tortoisecvs-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Message Hi=20 Sebastian=2C =20 I suggest you=20 use the debugger in MS visual studio. Just set the debugger to=20 start: =20 =20 tortoiseact.exe CVSAdd -l d:\ =20 Then set a=20 breakpoint where the add dialog is created=2C and step through. You'll see= =20 exactly how the code works. =20 =20 If you've not=20 used a debugger before=2C get someone (your teacher?) at the school to give= you a=20 5 minute introduction. =20 Also if you=20 can reproduce the crashes while running in debug=2C you will find the line = of code=20 it crashes on (visual studio will show it to you). Once you know where it= =20 crashes you can fix it and submit a patch. Bugs and patches should be=20 reported here: http://sourceforge.net/tracker/?group_id=3D48103&atid=3D451972 =20 Regards=2C =20 =20 Arthur=20 Barrett =20 =20 -----Original Message----- From: Sebastian Andersson=20 [mailto:[email protected]]=20 Sent: Monday=2C 13 February 2012 7:26=20 PM To: tortoisecvs-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Subject:=20 [TortoiseCVS] Adding some functionality... Hello! I have been trying to add some functionality to=20 TortoiseCVS (as a school project=2C but if it turns out to be great I wou= ld love=20 to share it). The goal is creating a Search screen that enables the user= =20 search through files in a folder for e.g author name or=20 changedates/createddates. The overall look could be very similair to the = "Add=20 Contents" dialog=2C which was my starting point in learning how the code = was set=20 up. I have successfully managed to edit the menu to show a Search-dialog= =20 option which when selected starts a almost identical dialog to the AddCon= tents=20 dialog.=20 Now I wanted to have ALL folders in the Root (the folder where=20 I started Tortoise in) to show up in the left panel gui-tree=2C and all f= iles in=20 the selected folder to show in the right list panel. However currently=2C= as the=20 Add-contents dialog only want to show files NOT in the repository=2C the= =20 gui-tree (ofcourse) only shows the folders that have files addable in the= m. I=20 have tried to figure out how this exactly works=2C but have failed. In my= mind=2C=20 somewhere in the code it should check whether a folder contains files tha= t are=20 not in the repository=2C but this location in the code is not obvious. Th= ere=20 seems to be a long sequence of events that determine what folders appear = in=20 the gui-tree. Some folders are excluded at the creating of the FileTree a= nd=20 some are excluded at the next step when creating the gui-tree=2C which is= very=20 confusing. Any hints on this would be very helpful. In my case=2C I want = ALL=20 folders to be visible. I do not understand what "Enabled" and=20 "Selected" means=2C which a treeData can have both of=2C can someone=20 explain? Also=2C there seems to be a bug in the Add Content dialog: If=20 you click the column head (the top of the column that sorts the ctrl-list= )=20 twice on the same column (to re-sort ascending/descending) and that colum= n=20 only contains one type of entry you will get a crash. E.g: A folder conta= ins=20 two addable files=2C both of which are of Format=3DBinary=2C you click to= sort after=20 Format and after two clicks (sometimes even one) you get a crash. This is= =20 regardless of what column it is (Add=2C Keywords=2C Type=2C etc). Very=20 thankful of any help and tips! Best=20 regards=2C Sebastian = --_0b4497cb-99c8-491e-ab8e-2e90fcf8d6f6_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <html> <head> <style><!-- .hmmessage P { margin:0px=3B padding:0px } body.hmmessage { font-size: 10pt=3B font-family:Tahoma } --></style></head> <body class=3D'hmmessage'><div dir=3D'ltr'> Hello!<br><br>Thanks for this answer! The debugger has been great and I've = come many more steps forward!<br><br>Since my goal is parsing out certain r= evisions from a group of files (that meet chosen criteria)=2C<br>my current= challenge is to in a easy way somehow get the repository metadata for a gr= oup of<br>files at the same time.<br><br>E.g: function(List of files) ->= =3B returns List of revisions (with metadata=2C<br>such as author/date/comm= ent of revision).<br><br>I have looked at how the History dialog works=2C b= ut it just gets data for one single file=2C and<br>I do not understand how = to take the next step.<br><br>Do I have to do one CVS-action per file? Avoi= ding multiple pop-up windows would be the<br>best solution=2C but is this p= ossible?<br><br>Any help or tips would be great!<br><br>Best regards=2C<br>= Sebastian<br><br><div><div id=3D"SkyDrivePlaceholder"></div><hr id=3D"stopS= pelling">Subject: RE: [TortoiseCVS] Adding some functionality...<br>Date: T= ue=2C 14 Feb 2012 09:12:01 +1100<br>From: arthur.barrett-qn/[email protected]<br>= To: [email protected]=3B tortoisecvs-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org<br><br> <meta http-equiv=3D"Content-Type" content=3D"text/html=3B charset=3Dunicode= "> <meta name=3D"Generator" content=3D"Microsoft SafeHTML"><title>Message</tit= le> <style> .ExternalClass .ecxhmmessage P {padding-right:0px=3Bpadding-left:0px=3Bpadding-bottom:0px=3Bpadding-top:0p= x=3B} .ExternalClass BODY.ecxhmmessage {font-size:10pt=3Bfont-family:Tahoma=3B} </style> <div><font color=3D"#0000ff" face=3D"Arial"><span class=3D"ecx579210022-130= 22012">Hi=20 Sebastian=2C</span></font></div> <div><font color=3D"#0000ff" face=3D"Arial"><span class=3D"ecx579210022-130= 22012"></span></font> =3B</div> <div><font color=3D"#0000ff" face=3D"Arial"><span class=3D"ecx579210022-130= 22012">I suggest you=20 use the debugger in MS visual =3Bstudio. =3B =3B </span></font>= <font color=3D"#0000ff" face=3D"Arial"><span class=3D"ecx579210022-13022012= ">Just set the debugger to=20 start:</span></font></div> <div><font color=3D"#0000ff" face=3D"Arial"><span class=3D"ecx579210022-130= 22012"></span></font> =3B</div> <div><font face=3D"Courier New"><span class=3D"ecx579210022-13022012"> = =3B =3B=20 tortoiseact.exe CVSAdd -l d:\</span></font></div> <div><font color=3D"#0000ff" face=3D"Arial"><span class=3D"ecx579210022-130= 22012"></span></font> =3B</div> <div><font color=3D"#0000ff" face=3D"Arial"><span class=3D"ecx579210022-130= 22012">Then set a=20 breakpoint where the add dialog is created=2C and step through. =3B You= 'll see=20 exactly how =3Bthe code =3Bworks. =3B =3B</span></font></di= v> <div><font color=3D"#0000ff" face=3D"Arial"><span class=3D"ecx579210022-130= 22012"></span></font> =3B</div> <div><font color=3D"#0000ff" face=3D"Arial"><span class=3D"ecx579210022-130= 22012">If you've not=20 used a debugger before=2C get someone (your teacher?) at the school to give= you a=20 5 minute introduction.</span></font></div> <div><font color=3D"#0000ff" face=3D"Arial"><span class=3D"ecx579210022-130= 22012"></span></font> =3B</div> <div><font color=3D"#0000ff" face=3D"Arial"><span class=3D"ecx579210022-130= 22012">Also if you=20 can reproduce the crashes while running in debug=2C you will find the line = of code=20 it crashes on (visual studio will show it to you). =3B Once you know wh= ere it=20 crashes you can fix it and submit a patch. =3B Bugs and patches should = be=20 reported here:</span></font></div> <div><font color=3D"#0000ff" face=3D"Arial"><span class=3D"ecx579210022-130= 22012"><a href=3D"http://sourceforge.net/tracker/?group_id=3D48103&=3Bat= id=3D451972" target=3D"_blank">http://sourceforge.net/tracker/?group_id=3D4= 8103&=3Batid=3D451972</a></span></font></div> <div><font color=3D"#0000ff" face=3D"Arial"><span class=3D"ecx579210022-130= 22012"></span></font> =3B</div> <div><font color=3D"#0000ff" face=3D"Arial"><span class=3D"ecx579210022-130= 22012">Regards=2C</span></font></div> <div><font color=3D"#0000ff" face=3D"Arial"><span class=3D"ecx579210022-130= 22012"></span></font> =3B</div> <div><font color=3D"#0000ff" face=3D"Arial"><span class=3D"ecx579210022-130= 22012"></span></font> =3B</div> <div><font color=3D"#0000ff" face=3D"Arial"><span class=3D"ecx579210022-130= 22012">Arthur=20 Barrett</span></font></div> <div><font color=3D"#0000ff" face=3D"Arial"><span class=3D"ecx579210022-130= 22012"> =3B</span></font></div> <blockquote dir=3D"ltr" style=3D"padding-left:5px=3Bmargin-left:5px=3Bborde= r-left:#0000ff 2px solid=3Bmargin-right:0px"> <div></div> <div class=3D"ecxOutlookMessageHeader" dir=3D"ltr" lang=3D"en-us" align= =3D"left"><font face=3D"Tahoma">-----Original Message-----<br><b>From:</b> = Sebastian Andersson=20 [mailto:[email protected]] <br><b>Sent:</b> Monday=2C 13 February 2012 = 7:26=20 PM<br><b>To:</b> tortoisecvs-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org<br><b>Subject:</= b>=20 [TortoiseCVS] Adding some functionality...<br><br></font></div> <div dir=3D"ltr">Hello!<br><br>I have been trying to add some functionali= ty to=20 TortoiseCVS (as a school project=2C but if it turns out to be great I wou= ld love=20 to share it). The goal is creating a Search screen that enables the user= =20 search through files in a folder for e.g author name or=20 changedates/createddates. The overall look could be very similair to the = "Add=20 Contents" dialog=2C which was my starting point in learning how the code = was set=20 up. I have successfully managed to edit the menu to show a Search-dialog= =20 option which when selected starts a almost identical dialog to the AddCon= tents=20 dialog. <br><br>Now I wanted to have ALL folders in the Root (the folder = where=20 I started Tortoise in) to show up in the left panel gui-tree=2C and all f= iles in=20 the selected folder to show in the right list panel. However currently=2C= as the=20 Add-contents dialog only want to show files NOT in the repository=2C the= =20 gui-tree (ofcourse) only shows the folders that have files addable in the= m. I=20 have tried to figure out how this exactly works=2C but have failed. In my= mind=2C=20 somewhere in the code it should check whether a folder contains files tha= t are=20 not in the repository=2C but this location in the code is not obvious. Th= ere=20 seems to be a long sequence of events that determine what folders appear = in=20 the gui-tree. Some folders are excluded at the creating of the FileTree a= nd=20 some are excluded at the next step when creating the gui-tree=2C which is= very=20 confusing. Any hints on this would be very helpful. In my case=2C I want = ALL=20 folders to be visible.<br><br>I do not understand what "Enabled" and=20 "Selected" means=2C which a treeData can have both of=2C can someone=20 explain?<br><br>Also=2C there seems to be a bug in the Add Content dialog= : If=20 you click the column head (the top of the column that sorts the ctrl-list= )=20 twice on the same column (to re-sort ascending/descending) and that colum= n=20 only contains one type of entry you will get a crash. E.g: A folder conta= ins=20 two addable files=2C both of which are of Format=3DBinary=2C you click to= sort after=20 Format and after two clicks (sometimes even one) you get a crash. This is= =20 regardless of what column it is (Add=2C Keywords=2C Type=2C etc).<br><br>= Very=20 thankful of any help and tips!<br><br>Best=20 regards=2C<br>Sebastian<br><br><br></div></blockquote></div> <= /div></body> </html>= --_0b4497cb-99c8-491e-ab8e-2e90fcf8d6f6_-- --===============6380097499236993875== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ --===============6380097499236993875== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ tortoisecvs-users mailing list tortoisecvs-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/tortoisecvs-users --===============6380097499236993875==--