[viewvc-users] Add/remove/re-add file in CVS

Jan Smets <[email protected]> Fri, 2 Aug 2013 01:15:28 +0200
Newsgroups gmane.comp.version-control.cvs.viewcvs.user
Message-ID <CAH9ve7yTMxWELQ6QgdpPmXBWNw9Yh_6PWez5ENR_TsV529V6PA__17339.1434400857$1375449517$gmane$org@mail.gmail.com>
Hi

I have this situation where a CVS file was added, removed and re-added
again on the HEAD branch. I would expect ViewVC to set the type to "Add"
for rev 1.3 of this file.
Is this a bug? If not, can you please explain the idea behind it. (I
verified that the behaviour is the same in 1.0/1.1/1.2dev)

Thank you

- Jan


SELECT checkins.ci_when, checkins.type, checkins.revision, people.who,
dirs.dir, files.file, branches.branch, repositories.repository,
checkins.addedlines, checkins.removedlines  FROM checkins LEFT JOIN files
ON checkins.fileid=files.id LEFT JOIN dirs ON dirid=dirs.id  LEFT JOIN
descs ON descid=descs.id LEFT JOIN people ON checkins.whoid=people.id LEFT
JOIN branches ON branches.id=checkins.branchid LEFT JOIN repositories ON
checkins.repositoryid=repositories.id  WHERE file="file.c" ORDER BY ci_when
DESC  LIMIT 100;
+---------------------+--------+----------+---------+-------------+-----------------------+--------------------+---------------+------------+--------------+
| ci_when             | type   | revision | who     | dir         |
file                  | branch             | repository    | addedlines |
removedlines |
+---------------------+--------+----------+---------+-------------+-----------------------+--------------------+---------------+------------+--------------+
| 2013-07-17 19:56:15 | Change | 1.3.4.2  | userxy  | path/to     |
file.c                | branchX            | /swdev/cvsrep |         49
|            0 |
| 2013-06-05 09:26:06 | Change | 1.3      | userxy  | path/to     |
file.c                |                    | /swdev/cvsrep |          0
|            0 |
| 2013-06-05 09:26:06 | Remove | 1.3.4.1  | userxy  | path/to     |
file.c                | branchX            | /swdev/cvsrep |          0
|           49 |
| 2013-06-04 17:39:04 | Remove | 1.2      | userxy  | path/to     |
file.c                |                    | /swdev/cvsrep |          2
|            2 |
| 2013-06-04 13:46:25 | Add    | 1.1      | userxy  | path/to     |
file.c                |                    | /swdev/cvsrep |          0
|            0 |
+---------------------+--------+----------+---------+-------------+-----------------------+--------------------+---------------+------------+--------------+


-- 
Smets Jan
[email protected]

------------------------------------------------------
http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=3061838

To unsubscribe from this discussion, e-mail: [[email protected]].