- Oct 17, 2017
-
-
Boris Feld authored
The function was introduced in 8491845a75b2 in mid-November 2016 but is never used anywhere in core.
-
- Oct 15, 2017
-
-
Boris Feld authored
Having more details about the push process will help to track changes made to the actual exchange.
-
- Oct 17, 2017
-
-
Boris Feld authored
The internal representation of bookmark value is binary. The fact we stored 'hex' was an implementation detail from using pushkey. We move the values in 'pullop.remotebookmarks' to binary before adding a way to exchange bookmarks not based on pushkey.
-
- Oct 19, 2017
-
-
David Demelier authored
As part of ConfigConsolidationPlan [1], rename the option according to the new UI guidelines [2] and add an alias for backward compatibility. [1]: https://www.mercurial-scm.org/wiki/ConfigConsolidationPlan [2]: https://www.mercurial-scm.org/wiki/UIGuideline#adding_new_options
-
David Demelier authored
As part of ConfigConsolidationPlan [1], rename the option according to the new UI guidelines [2] and add an alias for backward compatibility. [1]: https://www.mercurial-scm.org/wiki/ConfigConsolidationPlan [2]: https://www.mercurial-scm.org/wiki/UIGuideline#adding_new_options
-
- Nov 10, 2017
-
-
Anton Shestakov authored
Minor stylistic issues caught by jshint.
-
Anton Shestakov authored
These new colors and styles are already used in the tooltip that gets shown when user hovers over line numbers on annotate page. The old styles, replaced in this patch, look completely unrelated to gitweb or any other hgweb theme.
-
Anton Shestakov authored
These new colors and styles are already used in the tooltip that gets shown when user hovers over line numbers on annotate page. The old styles, replaced in this patch, look completely unrelated to paper or any other hgweb theme.
-
Martin von Zweigbergk authored
Differential Revision: https://phab.mercurial-scm.org/D1355
-
- Nov 08, 2017
-
-
Mark Thomas authored
The dirstate typically tries to keep the nonnormalset and otherparentset up-to-date when making changes to the dirstate. In the case of files marked normallookup, however, it erroneously removes the file from the nonnormalset, after _addpath had just added it. This doesn't seem to matter at the moment, as nothing relies on the nonnormalset being correct at this point, however a future re-implementations of the dirstate map will require this to be kept up-to-date correctly. Differential Revision: https://phab.mercurial-scm.org/D1339
-
Mark Thomas authored
dirstatemap.clear should remove all record of the files in the map. This includes removing caches of values derived from these. Differential Revision: https://phab.mercurial-scm.org/D1338
-
Mark Thomas authored
This utility function allows clearing of the cached value set up @propertycache, if there is one. Differential Revision: https://phab.mercurial-scm.org/D1337
-
- Nov 10, 2017
-
-
Augie Fackler authored
-
- Nov 09, 2017
-
-
Kyle Lippincott authored
This is fixing quadratic behavior, which is probably not noticeable in the common case, but if a very large directory gets added here, it can get pretty bad. This was noticed because we had some pushes that spent >25s in changegroup generation calling min() here, according to profiling. The original reasoning for min() being used in 829d369fc5a8 was that, at that point in the series, we were adding almost everything to tmfnodes during the first iteration through the loop , so we needed to avoid sending child directories before parents. Later changes made it so that the child directories were added only when we visited the parent directory (not all of them on the first iteration), so this is no longer necessary - there won't be any child directories in tmfnodes before the parents have been sent. This does mean that the manifests are now exchanged unordered, whereas previously we would essentially do [a, b, b/c, b/c/d, e], we now can send a, b, and e in any order; b/c must still follow b, and b/c/d must still follow b/c. Differential Revision: https://phab.mercurial-scm.org/D1351
-
- Nov 07, 2017
-
-
Durham Goode authored
With our treemanifest logic, the manifests are no longer transported as part of the changegroup and are no longer stored in a revlog. This means the self.manifestlog line in bundlerepo.filestart no longer calls _constructmanifest, and therefore does not consume the manifest portion of the changegroup, which means filestart is not populated and we result in an infinite loop. The fix is to make filestart aware that self.manifestlog might not consume the changegroup part, and consume it manually if necessary. There's currently no way to test this in core, but our treemanifest extension has tests to cover this. Differential Revision: https://phab.mercurial-scm.org/D1329
-
- Oct 19, 2017
-
-
Boris Feld authored
Right now, successorsetverb only needs successors to compute the verb. But we will want use additional information (effect-flags and operation) in the near future to compute a better verb. Add the markers parameter now so extensions (like Evolve) could wrap the function and start experimenting around better obsfate verbs. As successorsetverb now takes both successorset and markers parameters, rename it to obsfateverb, successorsetandmarkersverb was too long. Differential Revision: https://phab.mercurial-scm.org/D1191
-
- Nov 03, 2017
-
-
Mark Thomas authored
When origbackuppath is set, when looking to see if a file we are backing up conflicts with a directory in the origbackuppath, we incorrectly match on symlinks to directories. This means we try to call vfs.rmtree on the symlink, which fails. Differential Revision: https://phab.mercurial-scm.org/D1311
-
Mark Thomas authored
If origbackups are in use, a symlink to a valid directory is backed up, and an update is made that attempts to backup a file or link over that symlink, we abort with a bad error message instead of successfully updating. Differential Revision: https://phab.mercurial-scm.org/D1310
-
- Nov 07, 2017
-
-
Ryan McElroy authored
Previously, the caller was responsible for creating the directory structure of files written out using a path template. This is onerous, especially if the exact filenames are not known upfront, but are being accessed via a matcher. This patch changes things so that hg will attempt to create the appropriate directories before writing the output file. Differential Revision: https://phab.mercurial-scm.org/D1332
-
Ryan McElroy authored
In the next patch, we will change the behavior of the cat command to create output file parent directories before attempting to write the output file. This patch documents the current unfortunate behavior. Differential Revision: https://phab.mercurial-scm.org/D1331
-
- Oct 22, 2017
-
-
Pulkit Goyal authored
Differential Revision: https://phab.mercurial-scm.org/D1324
-
Pulkit Goyal authored
Differential Revision: https://phab.mercurial-scm.org/D1323
-
Pulkit Goyal authored
Differential Revision: https://phab.mercurial-scm.org/D1322
-
Pulkit Goyal authored
Differential Revision: https://phab.mercurial-scm.org/D1321
-
Pulkit Goyal authored
Differential Revision: https://phab.mercurial-scm.org/D1320
-
Pulkit Goyal authored
Differential Revision: https://phab.mercurial-scm.org/D1319
-
Pulkit Goyal authored
Differential Revision: https://phab.mercurial-scm.org/D1318
-
Pulkit Goyal authored
Differential Revision: https://phab.mercurial-scm.org/D1317
-
Pulkit Goyal authored
Differential Revision: https://phab.mercurial-scm.org/D1316
-
- Nov 07, 2017
-
-
Augie Fackler authored
-
durin42 authored
-
durin42 authored
-
- Oct 21, 2017
-
-
Yuya Nishihara authored
This can be used in conjunction with the ifeq() function.
-
Yuya Nishihara authored
loadkeyword() isn't a template keyword function.
-
Yuya Nishihara authored
I don't think it's great idea to expose the internal representation of phases. Let's discourage use of the phaseidx keyword.
-
- Nov 07, 2017
-
-
Gregory Szorc authored
We change subrepos.allowed from a list of allowed subrepo types to a combination of a master switch and per-type boolean flag. If the master switch is set, subrepos can be disabled wholesale. If subrepos are globally enabled, then per-type options are consulted. Mercurial repos are enabled by default. Everything else is disabled by default.
- Nov 06, 2017
-
-
Augie Fackler authored
-
- Nov 05, 2017
-
-
Yuya Nishihara authored
We have a security issue with git subrepos. I'm not sure if svn subrepo is vulnerable, but it seems not 100% safe to allow writing arbitrary data into a metadata directory. So for now, only hg subrepo is enabled by default. Maybe we should improve the help to describe why git/svn subrepos are disabled.
-
Yuya Nishihara authored
This allows us to minimize the behavior change introduced by the next patch. I have no idea which config style is preferred in UX POV, but I decided to get things done. a) list: 'allowed = hg, git, svn' b) sub option: 'allowed.hg = True' or 'allowed:hg = True' c) per-type action: 'hg = allow', 'git = abort'
-