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JyxSz+J9jhjPe//9x4JznpCzm/JzCHFO9CfONjHIcUqLa9qxqhmBFpr1U5J7vRir4ch7v8TGtGbcR3833HTUA7EEMu/Ca48XVfGNDmySQs8zgGpj1yzf/lBGbiAzTSp7Zp+ANLu+R3NjeiDUYQbgf3vcpoHL44duk4dzhD+ofFD75PF1SMTluWbeLCSENH9io2pxVDj3I5VhlNxHdbqY1WXb+sDBVr4niIGzQiKqVOV33ghyRpzVJFZ7SaQG7VR/mLL3UnvJuapLYtUV9+/7Si/CHl7m8NntPMvx1nM/Z4t/BN8Z5cdhPn2PLxp9f5VCmCqLlCQDSv94cCTLlatiCTfF7axgE0u7+CWiOUNyyqg/vu0pjTwIA== |
@@ -186,3 +186,4 b' 5405cb1a79010ac50c58cd84e6f50c4556bf2a4c' | |||||
186 | 956ec6f1320df26f3133ec40f3de866ea0695fd7 4.8rc0 |
|
186 | 956ec6f1320df26f3133ec40f3de866ea0695fd7 4.8rc0 | |
187 | a91a2837150bdcb27ae76b3646e6c93cd6a15904 4.8 |
|
187 | a91a2837150bdcb27ae76b3646e6c93cd6a15904 4.8 | |
188 | 1c8c54cf97256f4468da2eb4dbee24f7f3888e71 4.8.1 |
|
188 | 1c8c54cf97256f4468da2eb4dbee24f7f3888e71 4.8.1 | |
|
189 | 197f092b2cd9691e2a55d198f717b231af9be6f9 4.8.2 |
@@ -992,6 +992,13 b' static inline int index_baserev(indexObj' | |||||
992 | rev, result); |
|
992 | rev, result); | |
993 | return -2; |
|
993 | return -2; | |
994 | } |
|
994 | } | |
|
995 | if (result < -1) { | |||
|
996 | PyErr_Format( | |||
|
997 | PyExc_ValueError, | |||
|
998 | "corrupted revlog, revision base out of range: %d, %d", | |||
|
999 | rev, result); | |||
|
1000 | return -2; | |||
|
1001 | } | |||
995 | return result; |
|
1002 | return result; | |
996 | } |
|
1003 | } | |
997 |
|
1004 |
@@ -6098,7 +6098,7 b' def update(ui, repo, node=None, **opts):' | |||||
6098 | brev = rev |
|
6098 | brev = rev | |
6099 | if rev: |
|
6099 | if rev: | |
6100 | repo = scmutil.unhidehashlikerevs(repo, [rev], 'nowarn') |
|
6100 | repo = scmutil.unhidehashlikerevs(repo, [rev], 'nowarn') | |
6101 |
ctx = scmutil.revsingle(repo, rev, |
|
6101 | ctx = scmutil.revsingle(repo, rev, default=None) | |
6102 | rev = ctx.rev() |
|
6102 | rev = ctx.rev() | |
6103 | hidden = ctx.hidden() |
|
6103 | hidden = ctx.hidden() | |
6104 | overrides = {('ui', 'forcemerge'): opts.get(r'tool', '')} |
|
6104 | overrides = {('ui', 'forcemerge'): opts.get(r'tool', '')} |
@@ -127,6 +127,13 b' class _httprequesthandler(httpservermod.' | |||||
127 | and not path.startswith(self.server.prefix + b'/')): |
|
127 | and not path.startswith(self.server.prefix + b'/')): | |
128 | self._start_response(pycompat.strurl(common.statusmessage(404)), |
|
128 | self._start_response(pycompat.strurl(common.statusmessage(404)), | |
129 | []) |
|
129 | []) | |
|
130 | if self.command == 'POST': | |||
|
131 | # Paranoia: tell the client we're going to close the | |||
|
132 | # socket so they don't try and reuse a socket that | |||
|
133 | # might have a POST body waiting to confuse us. We do | |||
|
134 | # this by directly munging self.saved_headers because | |||
|
135 | # self._start_response ignores Connection headers. | |||
|
136 | self.saved_headers = [(r'Connection', r'Close')] | |||
130 | self._write(b"Not Found") |
|
137 | self._write(b"Not Found") | |
131 | self._done() |
|
138 | self._done() | |
132 | return |
|
139 | return |
@@ -48,7 +48,7 b' def _expandsets(root, cwd, kindpats, ctx' | |||||
48 |
|
48 | |||
49 | for kind, pat, source in kindpats: |
|
49 | for kind, pat, source in kindpats: | |
50 | if kind == 'set': |
|
50 | if kind == 'set': | |
51 |
if |
|
51 | if ctx is None: | |
52 | raise error.ProgrammingError("fileset expression with no " |
|
52 | raise error.ProgrammingError("fileset expression with no " | |
53 | "context") |
|
53 | "context") | |
54 | matchers.append(ctx.matchfileset(pat, badfn=badfn)) |
|
54 | matchers.append(ctx.matchfileset(pat, badfn=badfn)) |
@@ -586,7 +586,7 b' def showpeerurls(context, mapping):' | |||||
586 |
|
586 | |||
587 | @templatekeyword("predecessors", requires={'repo', 'ctx'}) |
|
587 | @templatekeyword("predecessors", requires={'repo', 'ctx'}) | |
588 | def showpredecessors(context, mapping): |
|
588 | def showpredecessors(context, mapping): | |
589 |
"""Returns the list |
|
589 | """Returns the list of the closest visible successors. (EXPERIMENTAL)""" | |
590 | repo = context.resource(mapping, 'repo') |
|
590 | repo = context.resource(mapping, 'repo') | |
591 | ctx = context.resource(mapping, 'ctx') |
|
591 | ctx = context.resource(mapping, 'ctx') | |
592 | predecessors = sorted(obsutil.closestpredecessors(repo, ctx.node())) |
|
592 | predecessors = sorted(obsutil.closestpredecessors(repo, ctx.node())) | |
@@ -624,7 +624,7 b' def showstatus(context, mapping):' | |||||
624 | @templatekeyword("successorssets", requires={'repo', 'ctx'}) |
|
624 | @templatekeyword("successorssets", requires={'repo', 'ctx'}) | |
625 | def showsuccessorssets(context, mapping): |
|
625 | def showsuccessorssets(context, mapping): | |
626 | """Returns a string of sets of successors for a changectx. Format used |
|
626 | """Returns a string of sets of successors for a changectx. Format used | |
627 |
is: [ctx1, ctx2], [ctx3] if ctx has been split |
|
627 | is: [ctx1, ctx2], [ctx3] if ctx has been split into ctx1 and ctx2 | |
628 | while also diverged into ctx3. (EXPERIMENTAL)""" |
|
628 | while also diverged into ctx3. (EXPERIMENTAL)""" | |
629 | repo = context.resource(mapping, 'repo') |
|
629 | repo = context.resource(mapping, 'repo') | |
630 | ctx = context.resource(mapping, 'ctx') |
|
630 | ctx = context.resource(mapping, 'ctx') |
@@ -156,6 +156,11 b' Issue294: hg remove --after dir fails wh' | |||||
156 | $ hg files . |
|
156 | $ hg files . | |
157 | [1] |
|
157 | [1] | |
158 |
|
158 | |||
|
159 | Fileset at null (i.e. a falsy context) shouldn't crash (issue6046) | |||
|
160 | ||||
|
161 | $ hg files -r null 'set:tracked()' | |||
|
162 | [1] | |||
|
163 | ||||
159 | Convert native path separator to slash (issue5572) |
|
164 | Convert native path separator to slash (issue5572) | |
160 |
|
165 | |||
161 | $ hg files -T '{path|relpath|slashpath}\n' |
|
166 | $ hg files -T '{path|relpath|slashpath}\n' |
@@ -57,6 +57,26 b' update to rev 0 with a date' | |||||
57 | abort: you can't specify a revision and a date |
|
57 | abort: you can't specify a revision and a date | |
58 | [255] |
|
58 | [255] | |
59 |
|
59 | |||
|
60 | update to default destination (with empty revspec) | |||
|
61 | ||||
|
62 | $ hg update -q null | |||
|
63 | $ hg update | |||
|
64 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |||
|
65 | $ hg id | |||
|
66 | 30aff43faee1 tip | |||
|
67 | ||||
|
68 | $ hg update -q null | |||
|
69 | $ hg update -r '' | |||
|
70 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |||
|
71 | $ hg id | |||
|
72 | 30aff43faee1 tip | |||
|
73 | ||||
|
74 | $ hg update -q null | |||
|
75 | $ hg update '' | |||
|
76 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |||
|
77 | $ hg id | |||
|
78 | 30aff43faee1 tip | |||
|
79 | ||||
60 | $ cd .. |
|
80 | $ cd .. | |
61 |
|
81 | |||
62 | update with worker processes |
|
82 | update with worker processes |
General Comments 0
You need to be logged in to leave comments.
Login now