Re: [viewvc-dev] Tracking changled lines in database
"C. Michael Pilato" <[email protected]> Tue, 03 Feb 2009 11:52:18 -0500
| Newsgroups | gmane.comp.version-control.cvs.viewcvs.devel |
|---|---|
| Organization | CollabNet, Inc. |
| Message-ID | <49887642.2020800__16935.0846940235$1233680033$gmane$org@collab.net> |
[email protected] wrote: >> ViewVC's commits database doesn't store the number of modified lines, >> but (in the tradition of both CVS and GNU diff) it does store the >> number of added lines and the number of removed lines. Is that >> information sufficient for your purposes? > > > Thank you for the quick reply. I now understand the reason for not > supporting changed lines. > > I need to be able to differentiate between adding/removing code from > changing code. This can help find code that is constantly being > refactored and therefore might prove helpful to have the code reviewed. > > In the added/removed lines I see that the svn side of things is > recognizing changed lines, but adding one to each of added and removed > lines. > > Can you keep things compatible by having a nullable column that is used > for version control systems that can differentiate between added, removed > and modified lines? Sounds like a reasonable thing to do. I should let you know upfront that the ViewVC commits database was designed solely with CVS in mind. Subversion didn't even exist. So this schema is *not* Subversion-friendly, and what Subversion support we have is hacked, sliced, diced, and pummeled into place. Were I you, I would take the logic from svndbadmin to employ in whatever fashion you see fit for your own needs, but not try to tie yourself to the ViewVC schema as a general rule. -- C. Michael Pilato <[email protected]> CollabNet <> www.collab.net <> Distributed Development On Demand ------------------------------------------------------ http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4251&dsMessageId=1097604 To unsubscribe from this discussion, e-mail: [[email protected]].
signature.asc
(application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkmIdkIACgkQokEGqRcG/W4iUwCgt+2eIxI/640sfHeQLLOtw2zR h/sAn0g1+1S3KVtgWpa9EuZuhe6YvT0J =HGF+ -----END PGP SIGNATURE-----