- Mar 05, 2018
-
-
Boris Feld authored
A batch commands encapsulate multiple other commands. We display a bit more details about what is actually batched if peer request tracking is set.
-
- Mar 14, 2018
-
-
Augie Fackler authored
This started failing recently, but it doesn't look important as no actual ui objects have been in play. Differential Revision: https://phab.mercurial-scm.org/D2867
-
Augie Fackler authored
This made some debugging a lot less painful when something was broken, and it costs us almost nothing, so I figure we may as well leave it in. Differential Revision: https://phab.mercurial-scm.org/D2853
-
- Mar 13, 2018
-
-
Augie Fackler authored
Differential Revision: https://phab.mercurial-scm.org/D2846
-
Augie Fackler authored
Differential Revision: https://phab.mercurial-scm.org/D2845
-
Augie Fackler authored
Caught by some deprecation warnings on Python 3.7. Differential Revision: https://phab.mercurial-scm.org/D2844
-
- Mar 10, 2018
-
-
Sushil Khanchi authored
-
- Mar 09, 2018
-
-
Boris Feld authored
This will help extensions to alter the behavior as they see fit.
-
Boris Feld authored
We want extensions to be able to implement their own logic. Generators can be consume only once, impractical for this purpose.
-
- Mar 13, 2018
-
-
Jun Wu authored
It's more correct to put it in xdiff.h since that file actually uses int64_t etc and xdiff.h is included by xinclude.h. This should fix the oss-fuzz build. Thanks durin42 for discovering the issue. Test Plan: `make local` and xdiff related tests still work. Differential Revision: https://phab.mercurial-scm.org/D2848
-
- Mar 12, 2018
-
-
Yuya Nishihara authored
-
- Mar 13, 2018
-
-
Yuya Nishihara authored
-
- Mar 04, 2018
-
-
Martin von Zweigbergk authored
Differential Revision: https://phab.mercurial-scm.org/D2811
-
- Mar 02, 2018
-
-
Martin von Zweigbergk authored
Now that most of _performrebasesubset() has been moved into _rebasenode(), it's simple enough that we can inline it. Differential Revision: https://phab.mercurial-scm.org/D2810
-
- Mar 12, 2018
-
-
Martin von Zweigbergk authored
We currently have _performrebase() and _performrebasesubset(), but we don't have a method for rebasing a single node (that's inside a loop in _performrebasesubset()). I think it makes sense to have such a method, so that's what this patch does. I think it may simplify future patches I'm working on that have to do with transactions, but I think this patch makes sense on its own whether or not that future work happens. Differential Revision: https://phab.mercurial-scm.org/D2809
-
- Mar 09, 2018
-
-
Martin von Zweigbergk authored
Differential Revision: https://phab.mercurial-scm.org/D2761
-
Martin von Zweigbergk authored
It looks like this was lost when the code was converted to the ui.configoverride() context manager in f255b1811f5e (rebase: get rid of ui.backupconfig, 2017-03-16). (And then the bad example was duplicated in 228916ca12b5 (rebase: add concludememorynode(), and call it when rebasing in-memory, 2017-12-07).) Differential Revision: https://phab.mercurial-scm.org/D2760
-
- Mar 08, 2018
-
-
Martin von Zweigbergk authored
Differential Revision: https://phab.mercurial-scm.org/D2759
-
- Mar 09, 2018
-
-
Martin von Zweigbergk authored
When rebase.singletransaction is set, we still used to create a second transaction when committing with --collapse. It's simpler to create a single transaction. Note that in the affected .t file, the test that uses --collapse still appears to create two transactions (it prints "rebase status stored" twice). However, only a single transaction is actually created and the second printout comes from cmdutil.commitforceeditor() that explicitly calls tr.writepending(). Also note the that we now roll back any commits if the user closes the commit message editor with an error code (or leaves the message empty). That might be unfortunate, but it's consistent with how we behave in the --no-collapse case (if the user passed --edit). If we want to change that, I think it should be done consistently in a separate patch. Differential Revision: https://phab.mercurial-scm.org/D2728
-
- Mar 13, 2018
-
-
Matt Harbison authored
This has been extremely valuable to show divergences between `hg serve` and `lfs-test-server`. Once the `hg serve` code lands, there will be a certain amount of conditionalizing that needs to be done, because `lfs-test-server` doesn't always follow its spec. The $ISO_8601_DATE_TIME$ pattern masks the fact that `lfs-test-serve` is sending out an expires_at value of "0001-01-01T00:00:00Z". `hg serve` will (probably) use current time + 10 minutes or similar. The $HTTP_DATE$ is the current time.
-
Matt Harbison authored
This will be useful to let the client print out the HTTP headers and JSON in a future patch, so we can compare native LFS serving against test-lfs-server behavior. There tends to be a lot of debug stuff that we don't care about here in a push, so I was tempted to print this output with a [devel] config. But this will be useful for field debugging too, so just put up with the extra output here. It would have been nice to be able to set ui.debug once, but issue5815 prevents that.
-
- Feb 24, 2018
-
-
Matt Harbison authored
This will be useful when printing HTTP headers and JSON payload received from an LFS server. The RFC 1123 date masking has uses elsewhere too.
-
- Mar 13, 2018
-
-
Matt Harbison authored
The xdiff case of test-diff-antipatience.t started crashing in the C extension with 882657a9f768 (with 6a71a5ba666b backported so it compiles). There are a few more instances of 'long', but this resolves the crashing.
-
- Mar 08, 2018
-
-
Yuya Nishihara authored
It has grown enough to be a dedicated module.
-
Yuya Nishihara authored
And make _hybrid and _mappable classes public. _showlist() is still marked as private since it's weird and third-party codes shouldn't depend on it.
-
Yuya Nishihara authored
As we have a util module, it doesn't make sense to import stringify() from templatefilters.py.
-
- Feb 28, 2018
-
-
Yuya Nishihara authored
-
Yuya Nishihara authored
See the previous patch for why.
-
Yuya Nishihara authored
The annotate logic is large. Let's move it out of the context module, which is basically an abstraction layer of repository operations.
-
- Mar 10, 2018
-
-
Matt Harbison authored
MSVC previously flagged these where the function is stored in a pointer: bdiff.c(284) : warning C4028: formal parameter 1 different from declaration bdiff.c(284) : warning C4028: formal parameter 2 different from declaration bdiff.c(284) : warning C4028: formal parameter 3 different from declaration bdiff.c(284) : warning C4028: formal parameter 4 different from declaration
-
Matt Harbison authored
It's probably harmless, but: warning C4334: '<<' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) Adding a 'ULL' suffix to 1 also works, but I doubt that's portable.
-
Matt Harbison authored
Sadly, MSVC 2008 lacks stdint.h. These are the only two definitions needed right now.
-
- Mar 08, 2018
-
-
Yuya Nishihara authored
Prepares for splitting template functions to new module. All eval* functions were moved to templateutil.py, and run* functions had to be moved as well due to the dependency from eval*s. eval*s were aliased as they are commonly used in codebase. _getdictitem() had to be made public.
-
Yuya Nishihara authored
Prepares for splitting template functions from templater.py.
-
- Mar 11, 2018
-
-
Gregory Szorc authored
Good riddance. .. api:: The old ``wsgirequest`` class for handling everything WSGI in hgweb has been replaced by separate request and response types. Various high-level functions in the hgweb WSGI applications now receive these new types as arguments instead of the old ``wsgirequest`` type. Differential Revision: https://phab.mercurial-scm.org/D2832
-
- Mar 10, 2018
-
-
Pulkit Goyal authored
commands.status,verbose if set to True, shows conflict information in `hg status`. It shows which unresolved state you are in, which are the unresolved files and how to continue the unresolved state. That sounds like a very good candidate for tweakdefaults. bisect is added to commands.status.skipstates because people generally leave unresolved bisect state and we should skip that in morestatus output. Differential Revision: https://phab.mercurial-scm.org/D2806
-
- Mar 11, 2018
-
-
Gregory Szorc authored
We need this so we can construct a new request instance from the original dict. Differential Revision: https://phab.mercurial-scm.org/D2831
-
Gregory Szorc authored
All responses now go through our modern response type. All code related to response handling can be deleted. Differential Revision: https://phab.mercurial-scm.org/D2830
-
Gregory Szorc authored
These were the last consumers of wsgirequest.respond() \o/ Differential Revision: https://phab.mercurial-scm.org/D2829
-
Gregory Szorc authored
Only a handful of consumers of wsgirequest remaining in this file... Differential Revision: https://phab.mercurial-scm.org/D2828
-