- Jan 23, 2014
-
-
Pierre-Yves David authored
Apparently this issue was fixed along the way (If it ever existed at all…)
-
- Mar 25, 2014
-
-
Gregory Szorc authored
Previously, test paths were assumed to be in the same directory and wouldn't have a directory component. If a path with a directory component was specified, it would be filtered out. This change allow paths to contain directories. This in turn allows tests from other directories to be executed. Executing tests in other directories may break assumptions elsewhere in the testing code. However, on initial glance, things appear to "just work." This approach of running tests from other directories is successfully being used at https://hg.mozilla.org/hgcustom/version-control-tools/file/7085790ff3af/run-mercurial-tests.py
-
Gregory Szorc authored
This patch moves the OptionParser population into its own function so consumers may modify the OptionParser before arguments are evaluated. This will allow consumers to add custom options, set different defaults, etc.
-
Gregory Szorc authored
-
Gregory Szorc authored
Before, arguments were not passed into the optparse.OptionParser instance and were coming from sys.argv. This patch enables consumers to define the list of arguments to parse without having to adjust sys.argv.
-
- Apr 11, 2014
-
-
Pierre-Yves David authored
We are going to introduce an `unbundlepart` dedicated to reading bundle. So we need to rename the one used to create bundle. Even if dedicated to creation, this is still used for unbundling until we get the new class.
-
Pierre-Yves David authored
The reason why it is here is not obvious. I'm the one who wrote it there in the first place and almost moved it 2 weeks later.
-
- Apr 12, 2014
-
-
Pierre-Yves David authored
We can use `util.chunkbuffer` instead.
-
Pierre-Yves David authored
Now that we have lazy generation of parts, let's use it.
-
- Apr 11, 2014
-
-
Pierre-Yves David authored
When the `part.data` attribute is an iterator, we assume it is an iterator of chunks and use it. We use a chunkbuffer to yield chunks of 4096 bytes. The tests are updated to use this feature.
-
- Apr 10, 2014
-
-
Pierre-Yves David authored
We are preparing streaming capability for part. So the generation of payload chunk will becomes more complex. We extract this part in its own function before any changes.
-
Pierre-Yves David authored
This code used to be in `writebundle` only. We needs to make it more broadly available for bundle2. The "changegroup" bundle2 part has to retrieve the binary content of changegroup stream. We moved the chunks retrieving code into the `unbundle10` object directly and the `writebundle` code is now using that. This split is useful for bundle2 purpose, we want to be able to easily stream changegroup content in a part. To keep thing simples, we kept compression out of the new methods. If it make more sense in the future, compression may get included in this function too.
-
- Mar 25, 2014
-
-
Pierre-Yves David authored
We now have an official way to return the result of addchangegroup. The tests are updated to check that the return bundle is properly created. It will be used when push is bundle2 enabled.
-
- Apr 04, 2014
-
-
Pierre-Yves David authored
We do not know yet what kind of data future features and extensions will need to exchange. To handle that, bundle2 allows to send arbitrary content to the server. As a consequence, we need to be able to reply arbitrary content to the client. And, we can use bundle2 to transmit those arbitrary data. When a client will push a bundle2 to the server, the server will reply with a bundle2 itself. This changeset installs the first stone of this logic and test it.
-
- Apr 11, 2014
-
-
Pierre-Yves David authored
We need an efficient way to handle bundle replies. The unbundle records class is extended to carry such data.
-
- Apr 01, 2014
-
-
Pierre-Yves David authored
For sending response to a pushed bundle, we need to link reply parts to request part. We introduce a part id for this purpose. This is a 32 bit unique integer stored in the header.
-
- Apr 07, 2014
-
-
Mads Kiilerich authored
This can happen after backout or grafts or criss cross merges. We already do the same (but slightly different) thing in manifestmerge and filemerge.
-
Sean Farley authored
With this changeset, we can now send a color name directly to the label function, e.g. $ hg log -r . -T "{label('red', node|short)}\n"
-
Sean Farley authored
This patch is just setup work so that we can reduce code duplication and have one place to define a valid effect.
-
Mads Kiilerich authored
We want to move in this direction.
-
- Feb 25, 2014
-
-
Mads Kiilerich authored
-
Mads Kiilerich authored
mergecopies might be doomed but it is not dead yet ...
-
- Apr 07, 2014
-
-
Mads Kiilerich authored
We want to move in this direction. ctx.ancestor is in a better position for handling a situation with multiple ancestors.
-
Mads Kiilerich authored
This do probably not make any real difference but is slightly more correct and we would like to get rid of flog.ancestor.
-
Mads Kiilerich authored
This do probably not make any real difference but is slightly more correct and we would like to get rid of changelog.ancestor.
-
- Mar 20, 2014
-
-
Mads Kiilerich authored
-
- Apr 07, 2014
-
-
Mads Kiilerich authored
-
- Mar 08, 2014
-
-
Katsunori FUJIWARA authored
-
Katsunori FUJIWARA authored
"applybundle()" also includes "addchangegroup()" invocation to encapsulate "vfs.join()" inside it.
-
Katsunori FUJIWARA authored
-
Katsunori FUJIWARA authored
-
Katsunori FUJIWARA authored
This patch makes "repair.strip()" treat bundle files via vfs. This patch also avoids applying "vfs.join()" on the value returned by "changegroup.writebundle()", to get relative path from "_bundle()".
-
Katsunori FUJIWARA authored
-
Katsunori FUJIWARA authored
This patch makes paths below in "_bundle()" relative to ".hg": - backup directory ("strip-backup"), and - bundle file under backup directory "vfs" is passed to "changegroup.writebundle()" to use relative path directly. This patch applies "vfs.join()" on the value returned by "_bundle()", because the caller expect it to return absolute path. This will be changed by succeeding patch changing the caller side.
-
Katsunori FUJIWARA authored
Before this patch, filename specified to "changegroup.writebundle()" should be absolute one. In some cases, they should be relative to repository root, store and so on (backup before strip, for example). This patch adds "vfs" argument to "writebundle()", and makes "writebundle()" open (and unlink) "filename" via vfs for relative access, if both filename and vfs are specified.
-
Katsunori FUJIWARA authored
Before this patch, "localrepository.undofiles()" returns list of absolute filename of undo files. This patch makes it return list of tuples "(vfs, relative filename)" to access undo files via vfs. This patch also changes "repair.strip()", which is the only user of "localrepository.undofiles()".
-
- Apr 11, 2014
-
-
Matt Mackall authored
-
- Apr 10, 2014
-
-
Wei, Elson authored
The default http request character set is UTF-8. If the message is not encoded in UTF-8, such as big5, it cannot be shown correctly. The 'charset' is overridden by the root document's, such that the user can select the proper encoding in the browser.
-
- Apr 11, 2014
-
-
Matt Mackall authored
-
Pierre-Yves David authored
-