-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathINFO.txt
140 lines (99 loc) · 3.78 KB
/
INFO.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
Starting perforce daemon as root:
p4d -d -r /var/db/perforce
drop table commentdata;
drop table commentstate;
drop table commentstatehistory;
drop table commentstatemetric;
drop table delta;
drop table participant;
drop table project;
drop table topic;
drop table topicbug;
drop table topicfile;
drop table topichistory;
drop table topicmetric;
drop table topicusermetric;
drop table topicviewhistory;
drop sequence sequence;
drop trigger commentstate_id_ins_row;
drop trigger project_id_ins_row;
In commitinfo:
# Run this to prepare for log_accum.pl in loginfo
DEFAULT $CVSROOT/CVSROOT/commit_prep.pl -r
Then in loginfo:
DEFAULT $CVSROOT/CVSROOT/log_accum.pl -u $USER %s
Note these versions don't seem to display the diff file...
Only seem to need to change:
foreach $dofile (@changed_files) {
if ($dofile =~ /\/$/) {
next; # ignore the silly "dir" entries
}
if ($debug) {
print STDERR "main(): doing 'cvs -nQq status -v $dofile'\n";
}
open(STATUS, "-|") || exec 'cvs', '-nQq', 'status', '-v', $dofile;
while (<STATUS>) {
chop;
push(@status_txt, $_);
}
}
Do do a diff. Also ideally need to add in deleted and added files too.
Creating the codestriker database.
/usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data
/usr/local/pgsql/bin/createuser --username=postgres -d -A codestriker
/usr/local/pgsql/bin/createdb --username=codestriker codestrikerdb
/usr/local/pgsql/bin/dropdb --username=codestriker codestrikerdb
/usr/local/pgsql/bin/psql -U codestriker codestrikerdb
----------------------------------------------------------------------
mysqladmin create codestrikerdb
mysqladmin drop codestrikerdb
mysql -u root mysql
CREATE DATABASE codestrikerdb;
GRANT SELECT,INSERT,UPDATE,DELETE,INDEX,ALTER,CREATE,DROP,REFERENCES ON codestrikerdb.* TO codestriker@localhost IDENTIFIED BY 'cspasswd';
FLUSH PRIVILEGES;
mysql -u codestriker -D codestrikerdb -p
mysql> CREATE TABLE test (
-> id INT NOT NULL,
-> last_name CHAR(30) NOT NULL,
-> first_name CHAR(30) NOT NULL,
-> PRIMARY KEY (id),
-> INDEX name (last_name,first_name));
show index from version;
describe version;
show tables;
----------------------------------------------------------------------
/usr/lib/postgresql/bin/postmaster -D /var/lib/postgres/data
mysql> select modified_ts, creation_ts from topic;
ERROR 1146: Table 'codestrikerdb.topic' doesn't exist
mysql> update topic set version=10, state=5, modified_ts=20020116104906 where id=7168516;
Query OK, 1 row affected (0.00 sec)
Rows matched: 1 Changed: 1 Warnings: 0
mysql> select modified_ts, creation_ts from topic where id=7168516;
+----------------+----------------+
| modified_ts | creation_ts |
+----------------+----------------+
| 20020116104906 | 20020529073931 |
+----------------+----------------+
1 row in set (0.00 sec)
mysql> update topic set version=10, state=5, modified_ts=20020116104906 where id=7168516;
Query OK, 0 rows affected (0.00 sec)
Rows matched: 1 Changed: 0 Warnings: 0
mysql> select modified_ts, creation_ts from topic where id=7168516;
+----------------+----------------+
| modified_ts | creation_ts |
+----------------+----------------+
| 20020116104906 | 20020529073931 |
+----------------+----------------+
1 row in set (0.00 sec)
mysql> update topic set version=10, state=5, modified_ts=20020116104950 where id=7168516;
Query OK, 1 row affected (0.00 sec)
Rows matched: 1 Changed: 1 Warnings: 0
mysql> select modified_ts, creation_ts from topic where id=7168516;
+----------------+----------------+
| modified_ts | creation_ts |
+----------------+----------------+
| 20020116104950 | 20020529074022 |
+----------------+----------------+
1 row in set (0.00 sec)
Subversion test, retrieve from collab win-tests.py revision 25651.
Also do diff 25651 25653