author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Tue, 08 Jan 2019 09:35:11 +0000 | |
changeset 866 | 8a885a75daa9 |
parent 809 | 1bbcf42198c6 |
child 925 | 5e4a47858522 |
permissions | -rw-r--r-- |
210 | 1 |
" |
335
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
326
diff
changeset
|
2 |
stx:libscm - a new source code management library for Smalltalk/X |
509
f92210d4585b
Updated copyright notice.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
396
diff
changeset
|
3 |
Copyright (C) 2012-2015 Jan Vrany |
335
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
326
diff
changeset
|
4 |
|
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
326
diff
changeset
|
5 |
This library is free software; you can redistribute it and/or |
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
326
diff
changeset
|
6 |
modify it under the terms of the GNU Lesser General Public |
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
326
diff
changeset
|
7 |
License as published by the Free Software Foundation; either |
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
326
diff
changeset
|
8 |
version 2.1 of the License. |
210 | 9 |
|
335
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
326
diff
changeset
|
10 |
This library is distributed in the hope that it will be useful, |
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
326
diff
changeset
|
11 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
326
diff
changeset
|
12 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
326
diff
changeset
|
13 |
Lesser General Public License for more details. |
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
326
diff
changeset
|
14 |
|
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
326
diff
changeset
|
15 |
You should have received a copy of the GNU Lesser General Public |
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
326
diff
changeset
|
16 |
License along with this library; if not, write to the Free Software |
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
326
diff
changeset
|
17 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
210 | 18 |
" |
69
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
19 |
"{ Package: 'stx:libscm/mercurial' }" |
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
20 |
|
515
d460ef249979
Added support for custom build files.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
509
diff
changeset
|
21 |
"{ NameSpace: Smalltalk }" |
d460ef249979
Added support for custom build files.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
509
diff
changeset
|
22 |
|
69
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
23 |
TestCase subclass:#HGTestCase |
562
e694ffae649b
Added support to user shared repositories instead to temporary clones when commiting.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
515
diff
changeset
|
24 |
instanceVariableNames:'repositories hgScmEnabled hgSettings scm scmPerPackage |
809
1bbcf42198c6
Initial support for updating obsolete package revision to its successor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
746
diff
changeset
|
25 |
tryLocalSourceFirst debug' |
100
7e2196730455
Test fixes. Added library description & copyright.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
93
diff
changeset
|
26 |
classVariableNames:'Verbose' |
69
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
27 |
poolDictionaries:'' |
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
28 |
category:'SCM-Mercurial-Tests' |
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
29 |
! |
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
30 |
|
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
31 |
!HGTestCase class methodsFor:'documentation'! |
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
32 |
|
210 | 33 |
copyright |
34 |
" |
|
335
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
326
diff
changeset
|
35 |
stx:libscm - a new source code management library for Smalltalk/X |
509
f92210d4585b
Updated copyright notice.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
396
diff
changeset
|
36 |
Copyright (C) 2012-2015 Jan Vrany |
335
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
326
diff
changeset
|
37 |
|
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
326
diff
changeset
|
38 |
This library is free software; you can redistribute it and/or |
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
326
diff
changeset
|
39 |
modify it under the terms of the GNU Lesser General Public |
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
326
diff
changeset
|
40 |
License as published by the Free Software Foundation; either |
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
326
diff
changeset
|
41 |
version 2.1 of the License. |
210 | 42 |
|
335
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
326
diff
changeset
|
43 |
This library is distributed in the hope that it will be useful, |
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
326
diff
changeset
|
44 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
326
diff
changeset
|
45 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
326
diff
changeset
|
46 |
Lesser General Public License for more details. |
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
326
diff
changeset
|
47 |
|
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
326
diff
changeset
|
48 |
You should have received a copy of the GNU Lesser General Public |
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
326
diff
changeset
|
49 |
License along with this library; if not, write to the Free Software |
7e19ab19148b
Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
326
diff
changeset
|
50 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
210 | 51 |
" |
52 |
! |
|
53 |
||
69
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
54 |
documentation |
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
55 |
" |
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
56 |
An anbstract base class for Mercurial tests |
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
57 |
|
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
58 |
[author:] |
275
ad4e4540781e
Fixed tests - make sure SourceCodeManager is set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
273
diff
changeset
|
59 |
Jan Vrany <jan.vrany@fit.cvut.cz> |
69
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
60 |
|
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
61 |
[instance variables:] |
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
62 |
|
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
63 |
[class variables:] |
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
64 |
|
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
65 |
[see also:] |
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
66 |
|
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
67 |
" |
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
68 |
! ! |
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
69 |
|
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
70 |
!HGTestCase class methodsFor:'accessing'! |
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
71 |
|
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
72 |
resources |
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
73 |
^Array with: HGRepositoriesResource |
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
74 |
|
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
75 |
"Created: / 19-09-2012 / 18:55:52 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
76 |
"Modified: / 17-10-2012 / 13:01:20 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
77 |
! ! |
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
78 |
|
76
f047cf2fc688
HGTests: tests for not yet supported features commented.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
69
diff
changeset
|
79 |
!HGTestCase class methodsFor:'testing'! |
f047cf2fc688
HGTests: tests for not yet supported features commented.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
69
diff
changeset
|
80 |
|
f047cf2fc688
HGTests: tests for not yet supported features commented.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
69
diff
changeset
|
81 |
isAbstract |
f047cf2fc688
HGTests: tests for not yet supported features commented.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
69
diff
changeset
|
82 |
^self == HGTestCase |
f047cf2fc688
HGTests: tests for not yet supported features commented.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
69
diff
changeset
|
83 |
|
f047cf2fc688
HGTests: tests for not yet supported features commented.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
69
diff
changeset
|
84 |
"Created: / 17-11-2012 / 11:00:16 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
f047cf2fc688
HGTests: tests for not yet supported features commented.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
69
diff
changeset
|
85 |
! ! |
f047cf2fc688
HGTests: tests for not yet supported features commented.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
69
diff
changeset
|
86 |
|
214
175e450bb8dd
Better error handling in HGCommand (part 1).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
210
diff
changeset
|
87 |
!HGTestCase methodsFor:'asserting'! |
175e450bb8dd
Better error handling in HGCommand (part 1).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
210
diff
changeset
|
88 |
|
175e450bb8dd
Better error handling in HGCommand (part 1).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
210
diff
changeset
|
89 |
should: block raise: error withMessage: msg |
175e450bb8dd
Better error handling in HGCommand (part 1).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
210
diff
changeset
|
90 |
|
175e450bb8dd
Better error handling in HGCommand (part 1).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
210
diff
changeset
|
91 |
<resource: #skipInDebuggersWalkBack> |
175e450bb8dd
Better error handling in HGCommand (part 1).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
210
diff
changeset
|
92 |
|
175e450bb8dd
Better error handling in HGCommand (part 1).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
210
diff
changeset
|
93 |
^self should: block raise: error suchThat: [:ex| |
275
ad4e4540781e
Fixed tests - make sure SourceCodeManager is set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
273
diff
changeset
|
94 |
ex description = msg |
ad4e4540781e
Fixed tests - make sure SourceCodeManager is set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
273
diff
changeset
|
95 |
]. |
214
175e450bb8dd
Better error handling in HGCommand (part 1).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
210
diff
changeset
|
96 |
|
175e450bb8dd
Better error handling in HGCommand (part 1).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
210
diff
changeset
|
97 |
"Created: / 04-02-2013 / 11:13:17 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
175e450bb8dd
Better error handling in HGCommand (part 1).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
210
diff
changeset
|
98 |
"Modified (format): / 04-02-2013 / 12:35:48 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
175e450bb8dd
Better error handling in HGCommand (part 1).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
210
diff
changeset
|
99 |
! ! |
175e450bb8dd
Better error handling in HGCommand (part 1).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
210
diff
changeset
|
100 |
|
93
2579830f6b61
Tests fixed. Not-yet-supported tests marked as skipped.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
76
diff
changeset
|
101 |
!HGTestCase methodsFor:'debugging'! |
2579830f6b61
Tests fixed. Not-yet-supported tests marked as skipped.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
76
diff
changeset
|
102 |
|
2579830f6b61
Tests fixed. Not-yet-supported tests marked as skipped.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
76
diff
changeset
|
103 |
dumpRepositoryLog: repo |
2579830f6b61
Tests fixed. Not-yet-supported tests marked as skipped.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
76
diff
changeset
|
104 |
^self dumpRepositoryLog: repo on: Transcript sender: thisContext sender |
2579830f6b61
Tests fixed. Not-yet-supported tests marked as skipped.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
76
diff
changeset
|
105 |
|
2579830f6b61
Tests fixed. Not-yet-supported tests marked as skipped.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
76
diff
changeset
|
106 |
"Created: / 22-11-2012 / 11:08:52 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2579830f6b61
Tests fixed. Not-yet-supported tests marked as skipped.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
76
diff
changeset
|
107 |
! |
2579830f6b61
Tests fixed. Not-yet-supported tests marked as skipped.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
76
diff
changeset
|
108 |
|
2579830f6b61
Tests fixed. Not-yet-supported tests marked as skipped.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
76
diff
changeset
|
109 |
dumpRepositoryLog: repo on: stream |
2579830f6b61
Tests fixed. Not-yet-supported tests marked as skipped.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
76
diff
changeset
|
110 |
self dumpRepositoryLog: repo on: stream sender: thisContext sender. |
2579830f6b61
Tests fixed. Not-yet-supported tests marked as skipped.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
76
diff
changeset
|
111 |
|
2579830f6b61
Tests fixed. Not-yet-supported tests marked as skipped.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
76
diff
changeset
|
112 |
"Created: / 22-11-2012 / 11:10:33 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2579830f6b61
Tests fixed. Not-yet-supported tests marked as skipped.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
76
diff
changeset
|
113 |
! |
2579830f6b61
Tests fixed. Not-yet-supported tests marked as skipped.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
76
diff
changeset
|
114 |
|
2579830f6b61
Tests fixed. Not-yet-supported tests marked as skipped.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
76
diff
changeset
|
115 |
dumpRepositoryLog: repo on: stream sender: sender |
2579830f6b61
Tests fixed. Not-yet-supported tests marked as skipped.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
76
diff
changeset
|
116 |
|
100
7e2196730455
Test fixes. Added library description & copyright.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
93
diff
changeset
|
117 |
Verbose == true ifFalse:[ ^ self ]. |
93
2579830f6b61
Tests fixed. Not-yet-supported tests marked as skipped.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
76
diff
changeset
|
118 |
stream cr. |
2579830f6b61
Tests fixed. Not-yet-supported tests marked as skipped.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
76
diff
changeset
|
119 |
stream nextPutAll: '+-- hg log '; nextPutAll: repo pathName; nextPutAll:' -- '; cr. |
2579830f6b61
Tests fixed. Not-yet-supported tests marked as skipped.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
76
diff
changeset
|
120 |
stream nextPutAll: '+-- sender: '; nextPutAll: sender printString ; nextPutAll:' -- '; cr. |
2579830f6b61
Tests fixed. Not-yet-supported tests marked as skipped.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
76
diff
changeset
|
121 |
(OperatingSystem getFullCommandOutputFrom:'hg log ', repo pathName) do:[:line| |
275
ad4e4540781e
Fixed tests - make sure SourceCodeManager is set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
273
diff
changeset
|
122 |
stream nextPutAll:'| '; nextPutAll: line; cr. |
93
2579830f6b61
Tests fixed. Not-yet-supported tests marked as skipped.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
76
diff
changeset
|
123 |
]. |
2579830f6b61
Tests fixed. Not-yet-supported tests marked as skipped.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
76
diff
changeset
|
124 |
stream nextPutAll: '+------------- '; cr. |
2579830f6b61
Tests fixed. Not-yet-supported tests marked as skipped.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
76
diff
changeset
|
125 |
|
2579830f6b61
Tests fixed. Not-yet-supported tests marked as skipped.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
76
diff
changeset
|
126 |
"Created: / 22-11-2012 / 11:10:06 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2579830f6b61
Tests fixed. Not-yet-supported tests marked as skipped.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
76
diff
changeset
|
127 |
! ! |
2579830f6b61
Tests fixed. Not-yet-supported tests marked as skipped.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
76
diff
changeset
|
128 |
|
69
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
129 |
!HGTestCase methodsFor:'private'! |
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
130 |
|
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
131 |
performTest |
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
132 |
|
93
2579830f6b61
Tests fixed. Not-yet-supported tests marked as skipped.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
76
diff
changeset
|
133 |
HGAuthorQuery answer: (testSelector , ' <', testSelector , '@', self class name, '>') do:[ |
347
fd2fd4ba9fe7
Improvement in HGTestCase. Do not update changefile and use temporary changeset when running tests.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
134 |
Class updateChangeFileQuerySignal answer: false do:[ |
fd2fd4ba9fe7
Improvement in HGTestCase. Do not update changefile and use temporary changeset when running tests.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
135 |
| savedProject | |
fd2fd4ba9fe7
Improvement in HGTestCase. Do not update changefile and use temporary changeset when running tests.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
136 |
|
fd2fd4ba9fe7
Improvement in HGTestCase. Do not update changefile and use temporary changeset when running tests.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
137 |
savedProject := Project current. |
fd2fd4ba9fe7
Improvement in HGTestCase. Do not update changefile and use temporary changeset when running tests.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
138 |
Project current: Project new. |
fd2fd4ba9fe7
Improvement in HGTestCase. Do not update changefile and use temporary changeset when running tests.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
139 |
[ |
fd2fd4ba9fe7
Improvement in HGTestCase. Do not update changefile and use temporary changeset when running tests.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
140 |
super performTest. |
fd2fd4ba9fe7
Improvement in HGTestCase. Do not update changefile and use temporary changeset when running tests.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
141 |
] ensure:[ |
fd2fd4ba9fe7
Improvement in HGTestCase. Do not update changefile and use temporary changeset when running tests.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
142 |
Project current: savedProject |
fd2fd4ba9fe7
Improvement in HGTestCase. Do not update changefile and use temporary changeset when running tests.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
143 |
]. |
fd2fd4ba9fe7
Improvement in HGTestCase. Do not update changefile and use temporary changeset when running tests.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
144 |
] |
69
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
145 |
]. |
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
146 |
|
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
147 |
"Created: / 30-09-2012 / 10:02:36 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
347
fd2fd4ba9fe7
Improvement in HGTestCase. Do not update changefile and use temporary changeset when running tests.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
335
diff
changeset
|
148 |
"Modified: / 20-09-2013 / 01:22:32 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
69
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
149 |
! ! |
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
150 |
|
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
151 |
!HGTestCase methodsFor:'running'! |
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
152 |
|
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
153 |
setUp |
275
ad4e4540781e
Fixed tests - make sure SourceCodeManager is set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
273
diff
changeset
|
154 |
scm := false. |
273
11eace2b9f54
Test fix: make sure HGSourceCodeManager is enabled before running tests.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
223
diff
changeset
|
155 |
hgScmEnabled := HGSourceCodeManager shownInBrowserMenus. |
562
e694ffae649b
Added support to user shared repositories instead to temporary clones when commiting.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
515
diff
changeset
|
156 |
|
e694ffae649b
Added support to user shared repositories instead to temporary clones when commiting.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
515
diff
changeset
|
157 |
"/ Save settings and reset to defaults, they will be restored in tearDown |
e694ffae649b
Added support to user shared repositories instead to temporary clones when commiting.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
515
diff
changeset
|
158 |
hgSettings := Dictionary new. |
e694ffae649b
Added support to user shared repositories instead to temporary clones when commiting.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
515
diff
changeset
|
159 |
#(hgCommand hgAutopush hgUseSharedRepositories) do:[:each | |
e694ffae649b
Added support to user shared repositories instead to temporary clones when commiting.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
515
diff
changeset
|
160 |
hgSettings at: each put: (UserPreferences current at: each ifAbsent: [ nil ]). |
e694ffae649b
Added support to user shared repositories instead to temporary clones when commiting.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
515
diff
changeset
|
161 |
]. |
e694ffae649b
Added support to user shared repositories instead to temporary clones when commiting.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
515
diff
changeset
|
162 |
UserPreferences current at: #hgUseSharedRepositories put: false. |
e694ffae649b
Added support to user shared repositories instead to temporary clones when commiting.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
515
diff
changeset
|
163 |
|
275
ad4e4540781e
Fixed tests - make sure SourceCodeManager is set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
273
diff
changeset
|
164 |
scm := (Smalltalk at:#SourceCodeManager). |
319 | 165 |
scmPerPackage := AbstractSourceCodeManager managerPerMatchingModuleDefinitions. |
166 |
AbstractSourceCodeManager managerPerMatchingModuleDefinitions: scmPerPackage copy. |
|
326
35f0d44ae290
Support for #newest symbolic revision in HGSourceCodeManager>>streamForClass:...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
323
diff
changeset
|
167 |
AbstractSourceCodeManager managerPerMatchingModuleDefinitions addFirst: |
321
06405fddc70d
Workaround for HGTestCase>>setUp.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
320
diff
changeset
|
168 |
(AbstractSourceCodeManager::PackageAndManager package:'mocks:hg*' manager:HGSourceCodeManager). |
319 | 169 |
scm isNil ifTrue:[ Smalltalk at: #SourceCodeManager put: HGSourceCodeManager]. |
323
7a39e728a3ac
When running tests, make sure Class>>#tryLocalSourceFirst: has defined value.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
321
diff
changeset
|
170 |
|
7a39e728a3ac
When running tests, make sure Class>>#tryLocalSourceFirst: has defined value.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
321
diff
changeset
|
171 |
tryLocalSourceFirst := Class tryLocalSourceFirst. |
7a39e728a3ac
When running tests, make sure Class>>#tryLocalSourceFirst: has defined value.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
321
diff
changeset
|
172 |
Class tryLocalSourceFirst:true. |
7a39e728a3ac
When running tests, make sure Class>>#tryLocalSourceFirst: has defined value.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
321
diff
changeset
|
173 |
|
273
11eace2b9f54
Test fix: make sure HGSourceCodeManager is enabled before running tests.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
223
diff
changeset
|
174 |
HGSourceCodeManager shownInBrowserMenus: true. |
167
73ede479a28f
Bugfix - do not cache repositories by default.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
115
diff
changeset
|
175 |
repositories:= OrderedCollection new. |
69
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
176 |
|
809
1bbcf42198c6
Initial support for updating obsolete package revision to its successor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
746
diff
changeset
|
177 |
HGRepositoriesResource current setUpRepositoryDirectory. |
1bbcf42198c6
Initial support for updating obsolete package revision to its successor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
746
diff
changeset
|
178 |
|
1bbcf42198c6
Initial support for updating obsolete package revision to its successor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
746
diff
changeset
|
179 |
debug := HGDebugFlags debug. |
1bbcf42198c6
Initial support for updating obsolete package revision to its successor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
746
diff
changeset
|
180 |
"/HGDebugFlags debug: false. |
746
08795b463d40
Do not remove test repositories after each test
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
562
diff
changeset
|
181 |
|
69
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
182 |
"Created: / 19-09-2012 / 19:01:57 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
809
1bbcf42198c6
Initial support for updating obsolete package revision to its successor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
746
diff
changeset
|
183 |
"Modified: / 07-02-2018 / 22:34:43 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
69
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
184 |
! |
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
185 |
|
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
186 |
tearDown |
562
e694ffae649b
Added support to user shared repositories instead to temporary clones when commiting.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
515
diff
changeset
|
187 |
"/ Restore settings |
e694ffae649b
Added support to user shared repositories instead to temporary clones when commiting.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
515
diff
changeset
|
188 |
#(hgCommand hgAutopush hgUseSharedRepositories) do:[:each | |
e694ffae649b
Added support to user shared repositories instead to temporary clones when commiting.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
515
diff
changeset
|
189 |
(hgSettings at: each) isNil ifTrue:[ |
e694ffae649b
Added support to user shared repositories instead to temporary clones when commiting.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
515
diff
changeset
|
190 |
UserPreferences current removeKey: each |
e694ffae649b
Added support to user shared repositories instead to temporary clones when commiting.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
515
diff
changeset
|
191 |
] ifFalse:[ |
e694ffae649b
Added support to user shared repositories instead to temporary clones when commiting.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
515
diff
changeset
|
192 |
UserPreferences current at: each put: (hgSettings at: each). |
e694ffae649b
Added support to user shared repositories instead to temporary clones when commiting.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
515
diff
changeset
|
193 |
]. |
e694ffae649b
Added support to user shared repositories instead to temporary clones when commiting.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
515
diff
changeset
|
194 |
]. |
69
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
195 |
|
273
11eace2b9f54
Test fix: make sure HGSourceCodeManager is enabled before running tests.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
223
diff
changeset
|
196 |
HGSourceCodeManager shownInBrowserMenus: hgScmEnabled. |
275
ad4e4540781e
Fixed tests - make sure SourceCodeManager is set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
273
diff
changeset
|
197 |
Smalltalk at: #SourceCodeManager put: scm. |
319 | 198 |
AbstractSourceCodeManager managerPerMatchingModuleDefinitions: scmPerPackage. |
323
7a39e728a3ac
When running tests, make sure Class>>#tryLocalSourceFirst: has defined value.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
321
diff
changeset
|
199 |
Class tryLocalSourceFirst: tryLocalSourceFirst. |
396
3c9d047e3841
Introduced a SCMAbstractPackageWorkingCopy and SCMAbstractPackageRevision...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
369
diff
changeset
|
200 |
HGPackageWorkingCopyRegistry current flush:'mocks*'. |
69
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
201 |
repositories := nil. |
809
1bbcf42198c6
Initial support for updating obsolete package revision to its successor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
746
diff
changeset
|
202 |
HGRepositoriesResource current tearDownRepositoryDirectory. |
1bbcf42198c6
Initial support for updating obsolete package revision to its successor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
746
diff
changeset
|
203 |
HGDebugFlags debug: debug. |
69
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
204 |
|
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
205 |
"Created: / 19-09-2012 / 19:03:15 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
206 |
"Modified: / 30-09-2012 / 05:26:48 / jv" |
809
1bbcf42198c6
Initial support for updating obsolete package revision to its successor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
746
diff
changeset
|
207 |
"Modified: / 07-02-2018 / 22:25:44 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
69
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
208 |
! ! |
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
209 |
|
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
210 |
!HGTestCase methodsFor:'utilities'! |
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
211 |
|
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
212 |
repositoryNamed: nm |
174
0d293012a897
Fixed commit to freshly created repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
167
diff
changeset
|
213 |
^self repositoryNamed: nm unpack: true |
0d293012a897
Fixed commit to freshly created repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
167
diff
changeset
|
214 |
|
0d293012a897
Fixed commit to freshly created repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
167
diff
changeset
|
215 |
"Created: / 19-09-2012 / 19:04:26 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
0d293012a897
Fixed commit to freshly created repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
167
diff
changeset
|
216 |
"Modified: / 14-01-2013 / 13:20:47 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
0d293012a897
Fixed commit to freshly created repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
167
diff
changeset
|
217 |
! |
0d293012a897
Fixed commit to freshly created repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
167
diff
changeset
|
218 |
|
214
175e450bb8dd
Better error handling in HGCommand (part 1).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
210
diff
changeset
|
219 |
repositoryNamed: nm init: init |
175e450bb8dd
Better error handling in HGCommand (part 1).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
210
diff
changeset
|
220 |
| dir | |
175e450bb8dd
Better error handling in HGCommand (part 1).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
210
diff
changeset
|
221 |
|
175e450bb8dd
Better error handling in HGCommand (part 1).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
210
diff
changeset
|
222 |
dir := HGRepositoriesResource current directoryForRepositoryNamed: nm init: init. |
175e450bb8dd
Better error handling in HGCommand (part 1).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
210
diff
changeset
|
223 |
repositories add: dir. |
175e450bb8dd
Better error handling in HGCommand (part 1).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
210
diff
changeset
|
224 |
^HGRepository on: dir. |
175e450bb8dd
Better error handling in HGCommand (part 1).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
210
diff
changeset
|
225 |
|
175e450bb8dd
Better error handling in HGCommand (part 1).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
210
diff
changeset
|
226 |
"Created: / 04-02-2013 / 11:04:24 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
175e450bb8dd
Better error handling in HGCommand (part 1).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
210
diff
changeset
|
227 |
! |
175e450bb8dd
Better error handling in HGCommand (part 1).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
210
diff
changeset
|
228 |
|
369
cc7b604a456a
Added tests to cover issue #15.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
347
diff
changeset
|
229 |
repositoryNamed: nm revision: revision |
cc7b604a456a
Added tests to cover issue #15.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
347
diff
changeset
|
230 |
^self repositoryNamed: nm unpack: true revision: revision |
cc7b604a456a
Added tests to cover issue #15.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
347
diff
changeset
|
231 |
|
cc7b604a456a
Added tests to cover issue #15.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
347
diff
changeset
|
232 |
"Created: / 11-02-2014 / 11:09:49 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
cc7b604a456a
Added tests to cover issue #15.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
347
diff
changeset
|
233 |
! |
cc7b604a456a
Added tests to cover issue #15.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
347
diff
changeset
|
234 |
|
174
0d293012a897
Fixed commit to freshly created repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
167
diff
changeset
|
235 |
repositoryNamed: nm unpack: unpack |
69
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
236 |
| dir | |
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
237 |
|
174
0d293012a897
Fixed commit to freshly created repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
167
diff
changeset
|
238 |
dir := HGRepositoriesResource current directoryForRepositoryNamed: nm unpack: unpack. |
69
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
239 |
repositories add: dir. |
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
240 |
^HGRepository on: dir. |
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
241 |
|
174
0d293012a897
Fixed commit to freshly created repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
167
diff
changeset
|
242 |
"Created: / 14-01-2013 / 13:20:31 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
369
cc7b604a456a
Added tests to cover issue #15.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
347
diff
changeset
|
243 |
! |
cc7b604a456a
Added tests to cover issue #15.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
347
diff
changeset
|
244 |
|
cc7b604a456a
Added tests to cover issue #15.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
347
diff
changeset
|
245 |
repositoryNamed: nm unpack: unpack revision: revision |
cc7b604a456a
Added tests to cover issue #15.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
347
diff
changeset
|
246 |
| dir | |
cc7b604a456a
Added tests to cover issue #15.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
347
diff
changeset
|
247 |
|
cc7b604a456a
Added tests to cover issue #15.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
347
diff
changeset
|
248 |
dir := HGRepositoriesResource current directoryForRepositoryNamed: nm unpack: unpack revision: revision. |
cc7b604a456a
Added tests to cover issue #15.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
347
diff
changeset
|
249 |
repositories add: dir. |
cc7b604a456a
Added tests to cover issue #15.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
347
diff
changeset
|
250 |
^HGRepository on: dir. |
cc7b604a456a
Added tests to cover issue #15.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
347
diff
changeset
|
251 |
|
cc7b604a456a
Added tests to cover issue #15.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
347
diff
changeset
|
252 |
"Created: / 11-02-2014 / 11:09:58 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
69
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
253 |
! ! |
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
254 |
|
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
255 |
!HGTestCase class methodsFor:'documentation'! |
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
256 |
|
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
257 |
version_HG |
115
b1ed2d29054b
version_HG changed to return string.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
100
diff
changeset
|
258 |
|
b1ed2d29054b
version_HG changed to return string.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
100
diff
changeset
|
259 |
^ '$Changeset: <not expanded> $' |
69
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff
changeset
|
260 |
! ! |
320
71293a1b6616
Initial version of HGInstaller.st...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
319
diff
changeset
|
261 |