##// END OF EJS Templates
templater: introduce a wrapper for date tuple (BC)...
Yuya Nishihara -
r38304:8d6109b4 default
parent child Browse files
Show More
@@ -367,7 +367,7 b' class _templateconverter(object):'
367 @staticmethod
367 @staticmethod
368 def formatdate(date, fmt):
368 def formatdate(date, fmt):
369 '''return date tuple'''
369 '''return date tuple'''
370 return date
370 return templateutil.date(date)
371 @staticmethod
371 @staticmethod
372 def formatdict(data, key, value, fmt, sep):
372 def formatdict(data, key, value, fmt, sep):
373 '''build object that can be evaluated as either plain string or dict'''
373 '''build object that can be evaluated as either plain string or dict'''
@@ -391,7 +391,7 b' def localdate(context, mapping, args):'
391 raise error.ParseError(_("localdate expects a timezone"))
391 raise error.ParseError(_("localdate expects a timezone"))
392 else:
392 else:
393 tzoffset = dateutil.makedate()[1]
393 tzoffset = dateutil.makedate()[1]
394 return (date[0], tzoffset)
394 return templateutil.date((date[0], tzoffset))
395
395
396 @templatefunc('max(iterable)')
396 @templatefunc('max(iterable)')
397 def max_(context, mapping, args, **kwargs):
397 def max_(context, mapping, args, **kwargs):
@@ -461,6 +461,7 b' def obsfatedate(context, mapping, args):'
461 markers = evalfuncarg(context, mapping, args[0])
461 markers = evalfuncarg(context, mapping, args[0])
462
462
463 try:
463 try:
464 # TODO: maybe this has to be a wrapped list of date wrappers?
464 data = obsutil.markersdates(markers)
465 data = obsutil.markersdates(markers)
465 return templateutil.hybridlist(data, name='date', fmt='%d %d')
466 return templateutil.hybridlist(data, name='date', fmt='%d %d')
466 except (TypeError, KeyError):
467 except (TypeError, KeyError):
@@ -240,7 +240,7 b' def showactivebookmark(context, mapping)'
240 def showdate(context, mapping):
240 def showdate(context, mapping):
241 """Date information. The date when the changeset was committed."""
241 """Date information. The date when the changeset was committed."""
242 ctx = context.resource(mapping, 'ctx')
242 ctx = context.resource(mapping, 'ctx')
243 return ctx.date()
243 return templateutil.date(ctx.date())
244
244
245 @templatekeyword('desc', requires={'ctx'})
245 @templatekeyword('desc', requires={'ctx'})
246 def showdescription(context, mapping):
246 def showdescription(context, mapping):
@@ -35,8 +35,8 b' True, False, int, float'
35 wrappedbytes, wrappedvalue
35 wrappedbytes, wrappedvalue
36 a wrapper for the above printable types.
36 a wrapper for the above printable types.
37
37
38 date tuple
38 date
39 a (unixtime, offset) tuple, which produces no meaningful output by itself.
39 represents a (unixtime, offset) tuple.
40
40
41 hybrid
41 hybrid
42 represents a list/dict of printable values, which can also be converted
42 represents a list/dict of printable values, which can also be converted
@@ -172,10 +172,37 b' class wrappedvalue(wrapped):'
172 def tovalue(self, context, mapping):
172 def tovalue(self, context, mapping):
173 return self._value
173 return self._value
174
174
175 # stub for representing a date type; may be a real date type that can
175 class date(wrapped):
176 # provide a readable string value
176 """Wrapper for date tuple"""
177 class date(object):
177
178 pass
178 def __init__(self, value):
179 # value may be (float, int), but public interface shouldn't support
180 # floating-point timestamp
181 self._unixtime, self._tzoffset = map(int, value)
182
183 def contains(self, context, mapping, item):
184 raise error.ParseError(_('date is not iterable'))
185
186 def getmember(self, context, mapping, key):
187 raise error.ParseError(_('date is not a dictionary'))
188
189 def getmin(self, context, mapping):
190 raise error.ParseError(_('date is not iterable'))
191
192 def getmax(self, context, mapping):
193 raise error.ParseError(_('date is not iterable'))
194
195 def itermaps(self, context):
196 raise error.ParseError(_("date is not iterable"))
197
198 def join(self, context, mapping, sep):
199 raise error.ParseError(_("date is not iterable"))
200
201 def show(self, context, mapping):
202 return '%d %d' % (self._unixtime, self._tzoffset)
203
204 def tovalue(self, context, mapping):
205 return (self._unixtime, self._tzoffset)
179
206
180 class hybrid(wrapped):
207 class hybrid(wrapped):
181 """Wrapper for list or dict to support legacy template
208 """Wrapper for list or dict to support legacy template
@@ -643,6 +670,9 b' def evaldate(context, mapping, arg, err='
643 return unwrapdate(context, mapping, thing, err)
670 return unwrapdate(context, mapping, thing, err)
644
671
645 def unwrapdate(context, mapping, thing, err=None):
672 def unwrapdate(context, mapping, thing, err=None):
673 if isinstance(thing, date):
674 return thing.tovalue(context, mapping)
675 # TODO: update hgweb to not return bare tuple; then just stringify 'thing'
646 thing = unwrapvalue(context, mapping, thing)
676 thing = unwrapvalue(context, mapping, thing)
647 try:
677 try:
648 return dateutil.parsedate(thing)
678 return dateutil.parsedate(thing)
@@ -107,7 +107,7 b' Matcher and metadata options'
107 $ hg amend -d '2000 1000' -u 'Foo <foo@example.com>' -A C D
107 $ hg amend -d '2000 1000' -u 'Foo <foo@example.com>' -A C D
108 saved backup bundle to $TESTTMP/repo1/.hg/strip-backup/c7ba14d9075b-b3e76daa-amend.hg (obsstore-off !)
108 saved backup bundle to $TESTTMP/repo1/.hg/strip-backup/c7ba14d9075b-b3e76daa-amend.hg (obsstore-off !)
109 $ hg log -r . -T '{node|short} {desc} {files} {author} {date}\n'
109 $ hg log -r . -T '{node|short} {desc} {files} {author} {date}\n'
110 14f6c4bcc865 NEWMESSAGE B D Foo <foo@example.com> 2000.01000
110 14f6c4bcc865 NEWMESSAGE B D Foo <foo@example.com> 2000 1000
111
111
112 Amend with editor
112 Amend with editor
113
113
@@ -1548,33 +1548,33 b' Keys work:'
1548 branches--debug:
1548 branches--debug:
1549 branches--debug:
1549 branches--debug:
1550 branches--debug:
1550 branches--debug:
1551 date: 1577872860.00
1551 date: 1577872860 0
1552 date: 1000000.00
1552 date: 1000000 0
1553 date: 1500001.00
1553 date: 1500001 0
1554 date: 1500000.00
1554 date: 1500000 0
1555 date: 1400000.00
1555 date: 1400000 0
1556 date: 1300000.00
1556 date: 1300000 0
1557 date: 1200000.00
1557 date: 1200000 0
1558 date: 1100000.00
1558 date: 1100000 0
1559 date: 1000000.00
1559 date: 1000000 0
1560 date--verbose: 1577872860.00
1560 date--verbose: 1577872860 0
1561 date--verbose: 1000000.00
1561 date--verbose: 1000000 0
1562 date--verbose: 1500001.00
1562 date--verbose: 1500001 0
1563 date--verbose: 1500000.00
1563 date--verbose: 1500000 0
1564 date--verbose: 1400000.00
1564 date--verbose: 1400000 0
1565 date--verbose: 1300000.00
1565 date--verbose: 1300000 0
1566 date--verbose: 1200000.00
1566 date--verbose: 1200000 0
1567 date--verbose: 1100000.00
1567 date--verbose: 1100000 0
1568 date--verbose: 1000000.00
1568 date--verbose: 1000000 0
1569 date--debug: 1577872860.00
1569 date--debug: 1577872860 0
1570 date--debug: 1000000.00
1570 date--debug: 1000000 0
1571 date--debug: 1500001.00
1571 date--debug: 1500001 0
1572 date--debug: 1500000.00
1572 date--debug: 1500000 0
1573 date--debug: 1400000.00
1573 date--debug: 1400000 0
1574 date--debug: 1300000.00
1574 date--debug: 1300000 0
1575 date--debug: 1200000.00
1575 date--debug: 1200000 0
1576 date--debug: 1100000.00
1576 date--debug: 1100000 0
1577 date--debug: 1000000.00
1577 date--debug: 1000000 0
1578 desc: third
1578 desc: third
1579 desc: second
1579 desc: second
1580 desc: merge
1580 desc: merge
@@ -2291,7 +2291,7 b' Upper/lower filters:'
2291 $ hg log -r0 --template '{author|lower}\n'
2291 $ hg log -r0 --template '{author|lower}\n'
2292 user name <user@hostname>
2292 user name <user@hostname>
2293 $ hg log -r0 --template '{date|upper}\n'
2293 $ hg log -r0 --template '{date|upper}\n'
2294 1000000.00
2294 1000000 0
2295
2295
2296 Add a commit that does all possible modifications at once
2296 Add a commit that does all possible modifications at once
2297
2297
@@ -2806,9 +2806,9 b' Error on syntax:'
2806 Behind the scenes, this would throw TypeError without intype=bytes
2806 Behind the scenes, this would throw TypeError without intype=bytes
2807
2807
2808 $ hg log -l 3 --template '{date|obfuscate}\n'
2808 $ hg log -l 3 --template '{date|obfuscate}\n'
2809 &#48;&#46;&#48;&#48;
2809 &#48;&#32;&#48;
2810 &#48;&#46;&#48;&#48;
2810 &#48;&#32;&#48;
2811 &#49;&#53;&#55;&#55;&#56;&#55;&#50;&#56;&#54;&#48;&#46;&#48;&#48;
2811 &#49;&#53;&#55;&#55;&#56;&#55;&#50;&#56;&#54;&#48;&#32;&#48;
2812
2812
2813 Behind the scenes, this will throw a ValueError
2813 Behind the scenes, this will throw a ValueError
2814
2814
@@ -2820,9 +2820,9 b' Behind the scenes, this will throw a Val'
2820 Behind the scenes, this would throw AttributeError without intype=bytes
2820 Behind the scenes, this would throw AttributeError without intype=bytes
2821
2821
2822 $ hg log -l 3 --template 'line: {date|escape}\n'
2822 $ hg log -l 3 --template 'line: {date|escape}\n'
2823 line: 0.00
2823 line: 0 0
2824 line: 0.00
2824 line: 0 0
2825 line: 1577872860.00
2825 line: 1577872860 0
2826
2826
2827 $ hg log -l 3 --template 'line: {extras|localdate}\n'
2827 $ hg log -l 3 --template 'line: {extras|localdate}\n'
2828 hg: parse error: localdate expects a date information
2828 hg: parse error: localdate expects a date information
@@ -3293,6 +3293,15 b' Test min/max of non-iterable:'
3293 (max first argument should be an iterable)
3293 (max first argument should be an iterable)
3294 [255]
3294 [255]
3295
3295
3296 $ hg log -R latesttag -l1 -T '{min(date)}'
3297 hg: parse error: date is not iterable
3298 (min first argument should be an iterable)
3299 [255]
3300 $ hg log -R latesttag -l1 -T '{max(date)}'
3301 hg: parse error: date is not iterable
3302 (max first argument should be an iterable)
3303 [255]
3304
3296 Test min/max of empty sequence:
3305 Test min/max of empty sequence:
3297
3306
3298 $ hg debugtemplate '{min("")}'
3307 $ hg debugtemplate '{min("")}'
@@ -3902,12 +3911,14 b' Test get function:'
3902 (get() expects a dict as first argument)
3911 (get() expects a dict as first argument)
3903 [255]
3912 [255]
3904
3913
3905 Test json filter applied to hybrid object:
3914 Test json filter applied to wrapped object:
3906
3915
3907 $ hg log -r0 -T '{files|json}\n'
3916 $ hg log -r0 -T '{files|json}\n'
3908 ["a"]
3917 ["a"]
3909 $ hg log -r0 -T '{extras|json}\n'
3918 $ hg log -r0 -T '{extras|json}\n'
3910 {"branch": "default"}
3919 {"branch": "default"}
3920 $ hg log -r0 -T '{date|json}\n'
3921 [0, 0]
3911
3922
3912 Test json filter applied to map result:
3923 Test json filter applied to map result:
3913
3924
@@ -4608,8 +4619,8 b' Test indent and not adding to empty line'
4608 Test with non-strings like dates
4619 Test with non-strings like dates
4609
4620
4610 $ hg log -T "{indent(date, ' ')}\n" -r 2:3 -R a
4621 $ hg log -T "{indent(date, ' ')}\n" -r 2:3 -R a
4611 1200000.00
4622 1200000 0
4612 1300000.00
4623 1300000 0
4613
4624
4614 Test broken string escapes:
4625 Test broken string escapes:
4615
4626
@@ -42,29 +42,29 b' tip'
42 000000000000
42 000000000000
43 glog
43 glog
44 $ hg log -G --template '{rev}: {desc} [{branches}] @ {date}\n'
44 $ hg log -G --template '{rev}: {desc} [{branches}] @ {date}\n'
45 o 11: r11 [] @ 11.00
45 o 11: r11 [] @ 11 0
46 |
46 |
47 o 10: r10 [] @ 10.00
47 o 10: r10 [] @ 10 0
48 |
48 |
49 o 9: r9 [] @ 9.00
49 o 9: r9 [] @ 9 0
50 |\
50 |\
51 | o 8: r8 [temp] @ 8.00
51 | o 8: r8 [temp] @ 8 0
52 | |
52 | |
53 | o 7: r7 [temp] @ 7.00
53 | o 7: r7 [temp] @ 7 0
54 | |
54 | |
55 | o 6: r6 [temp] @ 6.00
55 | o 6: r6 [temp] @ 6 0
56 | |
56 | |
57 | o 5: r5 [temp] @ 5.00
57 | o 5: r5 [temp] @ 5 0
58 | |
58 | |
59 o | 4: r4 [] @ 4.00
59 o | 4: r4 [] @ 4 0
60 | |
60 | |
61 o | 3: r3 [] @ 3.00
61 o | 3: r3 [] @ 3 0
62 | |
62 | |
63 o | 2: r2 [] @ 2.00
63 o | 2: r2 [] @ 2 0
64 |/
64 |/
65 o 1: r1 [] @ 1.00
65 o 1: r1 [] @ 1 0
66 |
66 |
67 o 0: r0 [] @ 0.00
67 o 0: r0 [] @ 0 0
68
68
69
69
70 overwritten files, starting on a non-default branch
70 overwritten files, starting on a non-default branch
@@ -88,29 +88,29 b' tip'
88 000000000000
88 000000000000
89 glog
89 glog
90 $ hg log -G --template '{rev}: {desc} [{branches}] @ {date}\n'
90 $ hg log -G --template '{rev}: {desc} [{branches}] @ {date}\n'
91 o 11: r11 [] @ 11.00
91 o 11: r11 [] @ 11 0
92 |
92 |
93 o 10: r10 [] @ 10.00
93 o 10: r10 [] @ 10 0
94 |
94 |
95 o 9: r9 [] @ 9.00
95 o 9: r9 [] @ 9 0
96 |\
96 |\
97 | o 8: r8 [temp] @ 8.00
97 | o 8: r8 [temp] @ 8 0
98 | |
98 | |
99 | o 7: r7 [temp] @ 7.00
99 | o 7: r7 [temp] @ 7 0
100 | |
100 | |
101 | o 6: r6 [temp] @ 6.00
101 | o 6: r6 [temp] @ 6 0
102 | |
102 | |
103 | o 5: r5 [temp] @ 5.00
103 | o 5: r5 [temp] @ 5 0
104 | |
104 | |
105 o | 4: r4 [] @ 4.00
105 o | 4: r4 [] @ 4 0
106 | |
106 | |
107 o | 3: r3 [] @ 3.00
107 o | 3: r3 [] @ 3 0
108 | |
108 | |
109 o | 2: r2 [] @ 2.00
109 o | 2: r2 [] @ 2 0
110 |/
110 |/
111 o 1: r1 [] @ 1.00
111 o 1: r1 [] @ 1 0
112 |
112 |
113 o 0: r0 [start] @ 0.00
113 o 0: r0 [start] @ 0 0
114
114
115 glog of
115 glog of
116 $ hg log -G --template '{rev}: {desc} [{branches}]\n' of
116 $ hg log -G --template '{rev}: {desc} [{branches}]\n' of
@@ -164,29 +164,29 b' tip'
164 000000000000
164 000000000000
165 glog
165 glog
166 $ hg log -G --template '{rev}: {desc} [{branches}] @ {date}\n'
166 $ hg log -G --template '{rev}: {desc} [{branches}] @ {date}\n'
167 o 11: r11 [] @ 11.00
167 o 11: r11 [] @ 11 0
168 |
168 |
169 o 10: r10 [] @ 10.00
169 o 10: r10 [] @ 10 0
170 |
170 |
171 o 9: r9 [] @ 9.00
171 o 9: r9 [] @ 9 0
172 |\
172 |\
173 | o 8: r8 [temp] @ 8.00
173 | o 8: r8 [temp] @ 8 0
174 | |
174 | |
175 | o 7: r7 [temp] @ 7.00
175 | o 7: r7 [temp] @ 7 0
176 | |
176 | |
177 | o 6: r6 [temp] @ 6.00
177 | o 6: r6 [temp] @ 6 0
178 | |
178 | |
179 | o 5: r5 [temp] @ 5.00
179 | o 5: r5 [temp] @ 5 0
180 | |
180 | |
181 o | 4: r4 [] @ 4.00
181 o | 4: r4 [] @ 4 0
182 | |
182 | |
183 o | 3: r3 [] @ 3.00
183 o | 3: r3 [] @ 3 0
184 | |
184 | |
185 o | 2: r2 [] @ 2.00
185 o | 2: r2 [] @ 2 0
186 |/
186 |/
187 o 1: r1 [] @ 1.00
187 o 1: r1 [] @ 1 0
188 |
188 |
189 o 0: r0 [] @ 0.00
189 o 0: r0 [] @ 0 0
190
190
191 glog mf
191 glog mf
192 $ hg log -G --template '{rev}: {desc} [{branches}]\n' mf
192 $ hg log -G --template '{rev}: {desc} [{branches}]\n' mf
@@ -202,7 +202,7 b''
202 ==== qnew -d
202 ==== qnew -d
203 Date: 3 0
203 Date: 3 0
204
204
205 0: 758bd2596a39 [mq]: 1.patch - test - 3.00
205 0: 758bd2596a39 [mq]: 1.patch - test - 3 0
206 ==== qref
206 ==== qref
207 adding 1
207 adding 1
208 Date: 3 0
208 Date: 3 0
@@ -212,7 +212,7 b''
212 +++ b/1
212 +++ b/1
213 @@ -0,0 +1,1 @@
213 @@ -0,0 +1,1 @@
214 +1
214 +1
215 0: 8c640e9949a8 [mq]: 1.patch - test - 3.00
215 0: 8c640e9949a8 [mq]: 1.patch - test - 3 0
216 ==== qref -d
216 ==== qref -d
217 Date: 4 0
217 Date: 4 0
218
218
@@ -221,7 +221,7 b''
221 +++ b/1
221 +++ b/1
222 @@ -0,0 +1,1 @@
222 @@ -0,0 +1,1 @@
223 +1
223 +1
224 0: 4a67dfeea974 [mq]: 1.patch - test - 4.00
224 0: 4a67dfeea974 [mq]: 1.patch - test - 4 0
225 ==== qnew
225 ==== qnew
226 adding 2
226 adding 2
227 diff -r ... 2
227 diff -r ... 2
@@ -248,8 +248,8 b''
248
248
249 Three
249 Three
250
250
251 1: 2a9ef0bdefba Three - test - 6.00
251 1: 2a9ef0bdefba Three - test - 6 0
252 0: 4a67dfeea974 [mq]: 1.patch - test - 4.00
252 0: 4a67dfeea974 [mq]: 1.patch - test - 4 0
253 ==== qref
253 ==== qref
254 adding 3
254 adding 3
255 Date: 6 0
255 Date: 6 0
@@ -261,8 +261,8 b''
261 +++ b/3
261 +++ b/3
262 @@ -0,0 +1,1 @@
262 @@ -0,0 +1,1 @@
263 +3
263 +3
264 1: 7f19ad9eea7b Three - test - 6.00
264 1: 7f19ad9eea7b Three - test - 6 0
265 0: 4a67dfeea974 [mq]: 1.patch - test - 4.00
265 0: 4a67dfeea974 [mq]: 1.patch - test - 4 0
266 ==== qref -m
266 ==== qref -m
267 Date: 6 0
267 Date: 6 0
268
268
@@ -273,8 +273,8 b''
273 +++ b/3
273 +++ b/3
274 @@ -0,0 +1,1 @@
274 @@ -0,0 +1,1 @@
275 +3
275 +3
276 1: 7ff7377793e3 Drei - test - 6.00
276 1: 7ff7377793e3 Drei - test - 6 0
277 0: 4a67dfeea974 [mq]: 1.patch - test - 4.00
277 0: 4a67dfeea974 [mq]: 1.patch - test - 4 0
278 ==== qref -d
278 ==== qref -d
279 Date: 7 0
279 Date: 7 0
280
280
@@ -285,8 +285,8 b''
285 +++ b/3
285 +++ b/3
286 @@ -0,0 +1,1 @@
286 @@ -0,0 +1,1 @@
287 +3
287 +3
288 1: d89d3144f518 Drei - test - 7.00
288 1: d89d3144f518 Drei - test - 7 0
289 0: 4a67dfeea974 [mq]: 1.patch - test - 4.00
289 0: 4a67dfeea974 [mq]: 1.patch - test - 4 0
290 ==== qref -d -m
290 ==== qref -d -m
291 Date: 8 0
291 Date: 8 0
292
292
@@ -297,8 +297,8 b''
297 +++ b/3
297 +++ b/3
298 @@ -0,0 +1,1 @@
298 @@ -0,0 +1,1 @@
299 +3
299 +3
300 1: b1b6b0fe0e6d Three (again) - test - 8.00
300 1: b1b6b0fe0e6d Three (again) - test - 8 0
301 0: 4a67dfeea974 [mq]: 1.patch - test - 4.00
301 0: 4a67dfeea974 [mq]: 1.patch - test - 4 0
302 ==== qnew -m
302 ==== qnew -m
303 adding 4
303 adding 4
304 Four
304 Four
@@ -331,9 +331,9 b''
331 now at: 3.patch
331 now at: 3.patch
332 # HG changeset patch
332 # HG changeset patch
333 # Date 10 0
333 # Date 10 0
334 2: d16a272220d2 imported patch 5.patch - test - 10.00
334 2: d16a272220d2 imported patch 5.patch - test - 10 0
335 1: b1b6b0fe0e6d Three (again) - test - 8.00
335 1: b1b6b0fe0e6d Three (again) - test - 8 0
336 0: 4a67dfeea974 [mq]: 1.patch - test - 4.00
336 0: 4a67dfeea974 [mq]: 1.patch - test - 4 0
337 ==== hg qref
337 ==== hg qref
338 adding 5
338 adding 5
339 # HG changeset patch
339 # HG changeset patch
@@ -345,9 +345,9 b''
345 +++ b/5
345 +++ b/5
346 @@ -0,0 +1,1 @@
346 @@ -0,0 +1,1 @@
347 +5
347 +5
348 2: 5dbf69c07df9 [mq]: 5.patch - test - 10.00
348 2: 5dbf69c07df9 [mq]: 5.patch - test - 10 0
349 1: b1b6b0fe0e6d Three (again) - test - 8.00
349 1: b1b6b0fe0e6d Three (again) - test - 8 0
350 0: 4a67dfeea974 [mq]: 1.patch - test - 4.00
350 0: 4a67dfeea974 [mq]: 1.patch - test - 4 0
351 ==== hg qref -d
351 ==== hg qref -d
352 # HG changeset patch
352 # HG changeset patch
353 # Date 11 0
353 # Date 11 0
@@ -358,9 +358,9 b''
358 +++ b/5
358 +++ b/5
359 @@ -0,0 +1,1 @@
359 @@ -0,0 +1,1 @@
360 +5
360 +5
361 2: 049de6af0c1d [mq]: 5.patch - test - 11.00
361 2: 049de6af0c1d [mq]: 5.patch - test - 11 0
362 1: b1b6b0fe0e6d Three (again) - test - 8.00
362 1: b1b6b0fe0e6d Three (again) - test - 8 0
363 0: 4a67dfeea974 [mq]: 1.patch - test - 4.00
363 0: 4a67dfeea974 [mq]: 1.patch - test - 4 0
364 ==== qnew with plain header
364 ==== qnew with plain header
365 popping 6.patch
365 popping 6.patch
366 now at: 5.patch
366 now at: 5.patch
@@ -380,10 +380,10 b''
380 +++ b/6
380 +++ b/6
381 @@ -0,0 +1,1 @@
381 @@ -0,0 +1,1 @@
382 +6
382 +6
383 3: 038c46b02a56 [mq]: 6.patch - test - 12.00
383 3: 038c46b02a56 [mq]: 6.patch - test - 12 0
384 2: 049de6af0c1d [mq]: 5.patch - test - 11.00
384 2: 049de6af0c1d [mq]: 5.patch - test - 11 0
385 1: b1b6b0fe0e6d Three (again) - test - 8.00
385 1: b1b6b0fe0e6d Three (again) - test - 8 0
386 0: 4a67dfeea974 [mq]: 1.patch - test - 4.00
386 0: 4a67dfeea974 [mq]: 1.patch - test - 4 0
387 ==== hg qref -d
387 ==== hg qref -d
388 Date: 13 0
388 Date: 13 0
389
389
@@ -392,10 +392,10 b''
392 +++ b/6
392 +++ b/6
393 @@ -0,0 +1,1 @@
393 @@ -0,0 +1,1 @@
394 +6
394 +6
395 3: 2785642ea4b4 [mq]: 6.patch - test - 13.00
395 3: 2785642ea4b4 [mq]: 6.patch - test - 13 0
396 2: 049de6af0c1d [mq]: 5.patch - test - 11.00
396 2: 049de6af0c1d [mq]: 5.patch - test - 11 0
397 1: b1b6b0fe0e6d Three (again) - test - 8.00
397 1: b1b6b0fe0e6d Three (again) - test - 8 0
398 0: 4a67dfeea974 [mq]: 1.patch - test - 4.00
398 0: 4a67dfeea974 [mq]: 1.patch - test - 4 0
399 popping 6.patch
399 popping 6.patch
400 now at: 5.patch
400 now at: 5.patch
401 ==== qnew -u
401 ==== qnew -u
@@ -448,10 +448,10 b''
448 +++ b/7
448 +++ b/7
449 @@ -0,0 +1,1 @@
449 @@ -0,0 +1,1 @@
450 +7
450 +7
451 3: 4f9d07369cc4 [mq]: 7.patch - john - 13.00
451 3: 4f9d07369cc4 [mq]: 7.patch - john - 13 0
452 2: 049de6af0c1d [mq]: 5.patch - test - 11.00
452 2: 049de6af0c1d [mq]: 5.patch - test - 11 0
453 1: b1b6b0fe0e6d Three (again) - test - 8.00
453 1: b1b6b0fe0e6d Three (again) - test - 8 0
454 0: 4a67dfeea974 [mq]: 1.patch - test - 4.00
454 0: 4a67dfeea974 [mq]: 1.patch - test - 4 0
455 ==== qnew
455 ==== qnew
456 adding 8
456 adding 8
457 diff -r ... 8
457 diff -r ... 8
@@ -523,10 +523,10 b''
523 applying 5.patch
523 applying 5.patch
524 applying 7.patch
524 applying 7.patch
525 now at: 7.patch
525 now at: 7.patch
526 3: d26a5b7ffce1 imported patch 7.patch - john - 13.00
526 3: d26a5b7ffce1 imported patch 7.patch - john - 13 0
527 2: dda6cf77060a imported patch 5.patch - test - 11.00
527 2: dda6cf77060a imported patch 5.patch - test - 11 0
528 1: 25e32d66c8c7 Three (again) - test - 8.00
528 1: 25e32d66c8c7 Three (again) - test - 8 0
529 0: e5011c0211fe imported patch 1.patch - test - 4.00
529 0: e5011c0211fe imported patch 1.patch - test - 4 0
530 $ rm -r sandbox
530 $ rm -r sandbox
531
531
532 ======= hg headers
532 ======= hg headers
@@ -540,7 +540,7 b''
540 # Date 3 0
540 # Date 3 0
541 # Parent
541 # Parent
542
542
543 0: 758bd2596a39 [mq]: 1.patch - test - 3.00
543 0: 758bd2596a39 [mq]: 1.patch - test - 3 0
544 ==== qref
544 ==== qref
545 adding 1
545 adding 1
546 # HG changeset patch
546 # HG changeset patch
@@ -552,7 +552,7 b''
552 +++ b/1
552 +++ b/1
553 @@ -0,0 +1,1 @@
553 @@ -0,0 +1,1 @@
554 +1
554 +1
555 0: 8c640e9949a8 [mq]: 1.patch - test - 3.00
555 0: 8c640e9949a8 [mq]: 1.patch - test - 3 0
556 ==== qref -d
556 ==== qref -d
557 # HG changeset patch
557 # HG changeset patch
558 # Date 4 0
558 # Date 4 0
@@ -563,7 +563,7 b''
563 +++ b/1
563 +++ b/1
564 @@ -0,0 +1,1 @@
564 @@ -0,0 +1,1 @@
565 +1
565 +1
566 0: 4a67dfeea974 [mq]: 1.patch - test - 4.00
566 0: 4a67dfeea974 [mq]: 1.patch - test - 4 0
567 ==== qnew
567 ==== qnew
568 adding 2
568 adding 2
569 # HG changeset patch
569 # HG changeset patch
@@ -596,8 +596,8 b''
596 # Parent
596 # Parent
597 Three
597 Three
598
598
599 1: 2a9ef0bdefba Three - test - 6.00
599 1: 2a9ef0bdefba Three - test - 6 0
600 0: 4a67dfeea974 [mq]: 1.patch - test - 4.00
600 0: 4a67dfeea974 [mq]: 1.patch - test - 4 0
601 ==== qref
601 ==== qref
602 adding 3
602 adding 3
603 # HG changeset patch
603 # HG changeset patch
@@ -610,8 +610,8 b''
610 +++ b/3
610 +++ b/3
611 @@ -0,0 +1,1 @@
611 @@ -0,0 +1,1 @@
612 +3
612 +3
613 1: 7f19ad9eea7b Three - test - 6.00
613 1: 7f19ad9eea7b Three - test - 6 0
614 0: 4a67dfeea974 [mq]: 1.patch - test - 4.00
614 0: 4a67dfeea974 [mq]: 1.patch - test - 4 0
615 ==== qref -m
615 ==== qref -m
616 # HG changeset patch
616 # HG changeset patch
617 # Date 6 0
617 # Date 6 0
@@ -623,8 +623,8 b''
623 +++ b/3
623 +++ b/3
624 @@ -0,0 +1,1 @@
624 @@ -0,0 +1,1 @@
625 +3
625 +3
626 1: 7ff7377793e3 Drei - test - 6.00
626 1: 7ff7377793e3 Drei - test - 6 0
627 0: 4a67dfeea974 [mq]: 1.patch - test - 4.00
627 0: 4a67dfeea974 [mq]: 1.patch - test - 4 0
628 ==== qref -d
628 ==== qref -d
629 # HG changeset patch
629 # HG changeset patch
630 # Date 7 0
630 # Date 7 0
@@ -636,8 +636,8 b''
636 +++ b/3
636 +++ b/3
637 @@ -0,0 +1,1 @@
637 @@ -0,0 +1,1 @@
638 +3
638 +3
639 1: d89d3144f518 Drei - test - 7.00
639 1: d89d3144f518 Drei - test - 7 0
640 0: 4a67dfeea974 [mq]: 1.patch - test - 4.00
640 0: 4a67dfeea974 [mq]: 1.patch - test - 4 0
641 ==== qref -d -m
641 ==== qref -d -m
642 # HG changeset patch
642 # HG changeset patch
643 # Date 8 0
643 # Date 8 0
@@ -649,8 +649,8 b''
649 +++ b/3
649 +++ b/3
650 @@ -0,0 +1,1 @@
650 @@ -0,0 +1,1 @@
651 +3
651 +3
652 1: b1b6b0fe0e6d Three (again) - test - 8.00
652 1: b1b6b0fe0e6d Three (again) - test - 8 0
653 0: 4a67dfeea974 [mq]: 1.patch - test - 4.00
653 0: 4a67dfeea974 [mq]: 1.patch - test - 4 0
654 ==== qnew -m
654 ==== qnew -m
655 adding 4
655 adding 4
656 # HG changeset patch
656 # HG changeset patch
@@ -686,9 +686,9 b''
686 now at: 3.patch
686 now at: 3.patch
687 # HG changeset patch
687 # HG changeset patch
688 # Date 10 0
688 # Date 10 0
689 2: d16a272220d2 imported patch 5.patch - test - 10.00
689 2: d16a272220d2 imported patch 5.patch - test - 10 0
690 1: b1b6b0fe0e6d Three (again) - test - 8.00
690 1: b1b6b0fe0e6d Three (again) - test - 8 0
691 0: 4a67dfeea974 [mq]: 1.patch - test - 4.00
691 0: 4a67dfeea974 [mq]: 1.patch - test - 4 0
692 ==== hg qref
692 ==== hg qref
693 adding 5
693 adding 5
694 # HG changeset patch
694 # HG changeset patch
@@ -700,9 +700,9 b''
700 +++ b/5
700 +++ b/5
701 @@ -0,0 +1,1 @@
701 @@ -0,0 +1,1 @@
702 +5
702 +5
703 2: 5dbf69c07df9 [mq]: 5.patch - test - 10.00
703 2: 5dbf69c07df9 [mq]: 5.patch - test - 10 0
704 1: b1b6b0fe0e6d Three (again) - test - 8.00
704 1: b1b6b0fe0e6d Three (again) - test - 8 0
705 0: 4a67dfeea974 [mq]: 1.patch - test - 4.00
705 0: 4a67dfeea974 [mq]: 1.patch - test - 4 0
706 ==== hg qref -d
706 ==== hg qref -d
707 # HG changeset patch
707 # HG changeset patch
708 # Date 11 0
708 # Date 11 0
@@ -713,9 +713,9 b''
713 +++ b/5
713 +++ b/5
714 @@ -0,0 +1,1 @@
714 @@ -0,0 +1,1 @@
715 +5
715 +5
716 2: 049de6af0c1d [mq]: 5.patch - test - 11.00
716 2: 049de6af0c1d [mq]: 5.patch - test - 11 0
717 1: b1b6b0fe0e6d Three (again) - test - 8.00
717 1: b1b6b0fe0e6d Three (again) - test - 8 0
718 0: 4a67dfeea974 [mq]: 1.patch - test - 4.00
718 0: 4a67dfeea974 [mq]: 1.patch - test - 4 0
719 ==== qnew with plain header
719 ==== qnew with plain header
720 popping 6.patch
720 popping 6.patch
721 now at: 5.patch
721 now at: 5.patch
@@ -735,10 +735,10 b''
735 +++ b/6
735 +++ b/6
736 @@ -0,0 +1,1 @@
736 @@ -0,0 +1,1 @@
737 +6
737 +6
738 3: 038c46b02a56 [mq]: 6.patch - test - 12.00
738 3: 038c46b02a56 [mq]: 6.patch - test - 12 0
739 2: 049de6af0c1d [mq]: 5.patch - test - 11.00
739 2: 049de6af0c1d [mq]: 5.patch - test - 11 0
740 1: b1b6b0fe0e6d Three (again) - test - 8.00
740 1: b1b6b0fe0e6d Three (again) - test - 8 0
741 0: 4a67dfeea974 [mq]: 1.patch - test - 4.00
741 0: 4a67dfeea974 [mq]: 1.patch - test - 4 0
742 ==== hg qref -d
742 ==== hg qref -d
743 Date: 13 0
743 Date: 13 0
744
744
@@ -747,10 +747,10 b''
747 +++ b/6
747 +++ b/6
748 @@ -0,0 +1,1 @@
748 @@ -0,0 +1,1 @@
749 +6
749 +6
750 3: 2785642ea4b4 [mq]: 6.patch - test - 13.00
750 3: 2785642ea4b4 [mq]: 6.patch - test - 13 0
751 2: 049de6af0c1d [mq]: 5.patch - test - 11.00
751 2: 049de6af0c1d [mq]: 5.patch - test - 11 0
752 1: b1b6b0fe0e6d Three (again) - test - 8.00
752 1: b1b6b0fe0e6d Three (again) - test - 8 0
753 0: 4a67dfeea974 [mq]: 1.patch - test - 4.00
753 0: 4a67dfeea974 [mq]: 1.patch - test - 4 0
754 popping 6.patch
754 popping 6.patch
755 now at: 5.patch
755 now at: 5.patch
756 ==== qnew -u
756 ==== qnew -u
@@ -811,10 +811,10 b''
811 +++ b/7
811 +++ b/7
812 @@ -0,0 +1,1 @@
812 @@ -0,0 +1,1 @@
813 +7
813 +7
814 3: 4f9d07369cc4 [mq]: 7.patch - john - 13.00
814 3: 4f9d07369cc4 [mq]: 7.patch - john - 13 0
815 2: 049de6af0c1d [mq]: 5.patch - test - 11.00
815 2: 049de6af0c1d [mq]: 5.patch - test - 11 0
816 1: b1b6b0fe0e6d Three (again) - test - 8.00
816 1: b1b6b0fe0e6d Three (again) - test - 8 0
817 0: 4a67dfeea974 [mq]: 1.patch - test - 4.00
817 0: 4a67dfeea974 [mq]: 1.patch - test - 4 0
818 ==== qnew
818 ==== qnew
819 adding 8
819 adding 8
820 # HG changeset patch
820 # HG changeset patch
@@ -894,8 +894,8 b''
894 applying 5.patch
894 applying 5.patch
895 applying 7.patch
895 applying 7.patch
896 now at: 7.patch
896 now at: 7.patch
897 3: d26a5b7ffce1 imported patch 7.patch - john - 13.00
897 3: d26a5b7ffce1 imported patch 7.patch - john - 13 0
898 2: dda6cf77060a imported patch 5.patch - test - 11.00
898 2: dda6cf77060a imported patch 5.patch - test - 11 0
899 1: 25e32d66c8c7 Three (again) - test - 8.00
899 1: 25e32d66c8c7 Three (again) - test - 8 0
900 0: e5011c0211fe imported patch 1.patch - test - 4.00
900 0: e5011c0211fe imported patch 1.patch - test - 4 0
901 $ rm -r sandbox
901 $ rm -r sandbox
General Comments 0
You need to be logged in to leave comments. Login now