Show More
@@ -100,6 +100,46 b' make sure shelve files were backed up' | |||||
100 | default.hg |
|
100 | default.hg | |
101 | default.patch |
|
101 | default.patch | |
102 |
|
102 | |||
|
103 | checks to make sure we dont create a directory or | |||
|
104 | hidden file while choosing a new shelve name | |||
|
105 | ||||
|
106 | when we are given a name | |||
|
107 | ||||
|
108 | $ hg shelve -n foo/bar | |||
|
109 | abort: shelved change names may not contain slashes | |||
|
110 | [255] | |||
|
111 | $ hg shelve -n .baz | |||
|
112 | abort: shelved change names may not start with '.' | |||
|
113 | [255] | |||
|
114 | $ hg shelve -n foo\\bar | |||
|
115 | abort: shelved change names may not contain slashes | |||
|
116 | [255] | |||
|
117 | ||||
|
118 | when shelve has to choose itself | |||
|
119 | ||||
|
120 | $ hg branch x/y -q | |||
|
121 | $ hg commit -q -m "Branch commit 0" | |||
|
122 | $ hg shelve | |||
|
123 | nothing changed | |||
|
124 | [1] | |||
|
125 | $ hg branch .x -q | |||
|
126 | $ hg commit -q -m "Branch commit 1" | |||
|
127 | $ hg shelve | |||
|
128 | abort: shelved change names may not start with '.' | |||
|
129 | [255] | |||
|
130 | $ hg branch x\\y -q | |||
|
131 | $ hg commit -q -m "Branch commit 2" | |||
|
132 | $ hg shelve | |||
|
133 | abort: shelved change names may not contain slashes | |||
|
134 | [255] | |||
|
135 | ||||
|
136 | cleaning the branches made for name checking tests | |||
|
137 | ||||
|
138 | $ hg up default -q | |||
|
139 | $ hg strip 3 -q | |||
|
140 | $ hg strip 2 -q | |||
|
141 | $ hg strip 1 -q | |||
|
142 | ||||
103 | create an mq patch - shelving should work fine with a patch applied |
|
143 | create an mq patch - shelving should work fine with a patch applied | |
104 |
|
144 | |||
105 | $ echo n > n |
|
145 | $ echo n > n | |
@@ -128,15 +168,6 b' set up some more complex changes to shel' | |||||
128 | c |
|
168 | c | |
129 | R b/b |
|
169 | R b/b | |
130 |
|
170 | |||
131 | prevent some foot-shooting |
|
|||
132 |
|
||||
133 | $ hg shelve -n foo/bar |
|
|||
134 | abort: shelved change names may not contain slashes |
|
|||
135 | [255] |
|
|||
136 | $ hg shelve -n .baz |
|
|||
137 | abort: shelved change names may not start with '.' |
|
|||
138 | [255] |
|
|||
139 |
|
||||
140 | the common case - no options or filenames |
|
171 | the common case - no options or filenames | |
141 |
|
172 | |||
142 | $ hg shelve |
|
173 | $ hg shelve |
General Comments 0
You need to be logged in to leave comments.
Login now