- Dec 30, 2021
-
-
Dan Villiom Podlaski Christiansen authored
This leads to unstable commit IDs.
-
- Jul 09, 2021
-
-
Dan Villiom Podlaski Christiansen authored
-
Dan Villiom Podlaski Christiansen authored
Rather than mentioning Git objects, tell the user how many commits will be processed; it says the same, but is more useful.
-
- Oct 22, 2021
-
-
Dan Villiom Podlaski Christiansen authored
-
- Jan 31, 2021
-
-
Dan Villiom Podlaski Christiansen authored
They offer useful information about what the test is doing, and slow down the test ever so slightly with no benefit whatsoever.
-
Dan Villiom Podlaski Christiansen authored
Mercurial 5.7 changed the default update target. This removes it as an implicit assumption from some tests that don't actually rely on it.
-
- Aug 13, 2020
-
-
Tristan Seligmann authored
Pass --ff-only to git pull to avoid a warning.
-
- Sep 12, 2016
-
-
Ryan McElroy authored
git 2.9 outputs a longer path during clone than 2.8 did. Update the tests to allow either behavior.
-
- Dec 31, 2015
-
-
Siddharth Agarwal authored
-
- Dec 02, 2014
-
-
Siddharth Agarwal authored
See inline comments for why the additional metadata needs to be stored. This literally breaks all the hashes because of the additional metadata. The changing of hashes is unfortunate but necessary to preserve bidirectionality. While this could be broken up into multiple commits, there was no way to do that while preserving bidirectionality. Following the principle that every intermediate commit must result in a correct state, I decided to combine the commits.
-
- May 27, 2014
-
-
Siddharth Agarwal authored
Mercurial changesets 10f15e34d86c and ca275f7ec576 added messages when bookmarks are activated and deactivated, respectively.
-
- Mar 25, 2014
-
-
durin42 authored
Tests pass on both my Mac and Linux machine, so I feel moderately confident that this is portable.
-
- Dec 14, 2013
-
-
durin42 authored
-
- Dec 13, 2013
-
-
durin42 authored
-
- Aug 28, 2013
- Jan 06, 2013
-
-
David M. Carr authored
As pointed out by l33t, Hg-Git's output for push doesn't currently do a very good job of telling the user what happened. My previous changes in this area had moved some of the output from status to note, making it only show if --verbose was specified. However, I hadn't realized at the time that the reference information (though overly verbose) was providing a valueable purpose that otherwise wasn't met; telling the user that a remote reference had changed. This changeset makes it so that: * default output will include simple messages like "adding reference refs/heads/feature" and "updating reference refs/heads/master" (omitting any mention of unchanged references) * verbose output will include more detailed messages like "adding reference default::refs/heads/feature => GIT:aba43c" and "updating reference default::refs/heads/master => GIT:aba43c" (omitting any mention of unchanged references) * debug output will include the detailed output like in verbose, but addtionally will include messages like "unchanged reference default::refs/heads/other => GIT:aba43c" https://bitbucket.org/durin42/hg-git/issue/64/push-confirmation
-
David M. Carr authored
l33t pointed out that currently, Hg-Git doesn't provide any confirmation that a push was successful other than the exit code. Normal Mercurial provides a couple other messages followed by "added X changesets with Y changes to Z files". After this change, Hg-Git will provide much more similar output. It's not identical, as the underlying model is substantially different, but the concept is the same. The main message is "added X commits with Y trees and Z blobs". This change doesn't affect the output of what references/branches were touched. That will be addressed in a subsequent commit. Dulwich doesn't provide an easy hook to get the information needed for this output. Instead of passing generate_pack_contents as the pack generator function to send_pack, I pass a custom function that determines the "missing" objects, stores the counts, and then calls generate_pack_contents (which then will determine the "missing" objects again. The new expected output: searching for changes # unless quiet true <N> commits found # if verbose true list of commits: # if debugflag true and at least one commit found <each hash> # if debugflag true and at least one commit found adding objects # if at least one commit found unless quiet true added <N> commits with <N> trees and <N> blobs # if at least one object unless # quiet true https://bitbucket.org/durin42/hg-git/issue/64/push-confirmation
-
- Nov 03, 2012
-
-
David M. Carr authored
Now that we're in the unified test format, there isn't a need to use echo to provide context to command output. This technique actually ends up resulting in redundant output. To preserve the original context, but eliminate the redundancy, such echo statements have been converted into comment lines.
-
David M. Carr authored
One or both of these requirements were in almost every test in exactly the same way. Now, these checks are performed in every test that uses the testutil. This makes it easier for test authors to add these checks into new tests (just add a reference to the testutil, which you'd probably want anyway). We considered having each test declare their requirements (currently, either "git" or "dulwich"), but in this case, preferred the simplicity of having the check always performed (even if a particular test doesn't need one or the other). You can't perform any meaningful testing of Hg-Git without both of these dependencies properly configured. The main value to checking for them in the tests (rather than just letting the tests fail) is that it gives a meaningful error message to help people figure out how to fix their environment. In the case that either git or dulwich is missing, the information will be just as clearly conveyed regardless of whether its all the tests that are skipped, or just most of them. I didn't add dulwich to hghave (even though this is clearly the sort of thing that hghave is intended for) because hghave is currently pulled from Mercurial completely unchanged, and it's probably best to keep it that way. Tested by running the tests in three configurations: * No dulwich installed (ran 0, skipped 28, failed 0, output: Skipped *: missing feature: dulwich) * Bad git on path (ran 1, skipped 27, failed 0, output: Skipped *: missing feature: git command line client) * Working git and correct version of dulwich installed (ran 28, skipped 0, failed 0) Thanks to Felipe Contreras for the idea to extract this logic into a library.
-
- Oct 31, 2012
-
-
David M. Carr authored
It's functionally equivalent to create a directory, cd into it, git init, and cd out of the directory, or simply git init with the directory specified. In several cases, we were doing the former without performing any other operations in the git repo, which just made the test unneccesarily complex. Even in the case where we still want to cd into the directory, calling git init with the directory name eliminates the need for a separate mkdir command. This changeset converts the former approach to the latter with the goal of increasing the readability of the tests. Thanks to Felipe Contreras for the patch which this was based on.
-
David M. Carr authored
Thanks to Felipe Contreras for the patch which this was based on. The functions were renamed to make it clearer that these are shell functions rather than normal git/hg commands, and to make it clearer which tool is being invoked. Old name | New name ------------------------ commit | fn_git_commit tag | fn_git_tag hgcommit | fn_hg_commit hgtag | fn_hg_tag Extraction from test-encoding.t was left for a subsequent patch, as I was seeing unexpected output changes when I attempted the extraction. The gitcommit and hgcommit functions in test-bookmark-workflow.t were left as-is for now, as they have a different behavior than the standard version (separate counters for each).
-
David M. Carr authored
Thanks to Felipe Contreras for the patch which this was based on. Even though the MQ extension was only used in a single test (test-pull-after-strip.t), I included it in the testutil. It shouldn't hurt anything to have it enabled and not used, and saves us from having to deal with enabling extensions in individual tests at all. Similarly, this changeset results in the graphlog extension being enabled for all tests, even though there were some that didn't use it before. This is even less significant in Mercurial 2.3+, since in those versions, graphlog is part of core, and is available even when the extension is disabled.
-
- Oct 30, 2012
-
-
David M. Carr authored
This check is a remnant from back when we were using git-daemon in the tests.
-
- Oct 29, 2012
-
-
David M. Carr authored
In converting this test to the unified format, it looks like we missed this line. It was accidentally being treated as a comment rather than executable.
-
David M. Carr authored
Now that hghave git works properly, uncomment the calls, and add ones that were missing.
-
- Oct 26, 2012
-
-
David M. Carr authored
When communicating with the user on push/outgoing, Mercurial doesn't show a "exporting hg objects to git" message, so we shouldn't. The message has been changed to be shown if --verbose is specified.
-
David M. Carr authored
When communicating with the user on push, Mercurial doesn't show much on success. Currently, Hg-Git shows every changed ref. After this change, the default output will more closely match Mercurial's regular behavior (no per-ref output), while changed refs will be shown if --verbose is specified, and all refs will be shown if --debug is specified.
-
- Oct 08, 2012
-
-
David M. Carr authored
The output for "hg push" when there were no changes didn't quite match between Mercurial with and without Hg-Git, so I changed the behavior to bring it into synch. The existing "creating and sending data" message was changed to be included if --verbose is specified.
-
- Oct 07, 2012
-
-
David M. Carr authored
I was seeing sporadic failures running this test on Mac OS X 10.8. They looked like this: + sed: 1: "s_/private/var/folders/ ...": bad flag in substitute command: 'T' My assumption is that some character was being included in the path of the temporary directory that sed didn't like. It looks like the sed function was being used to eliminate differences between test runs due to the path changing each run. That isn't needed any more now that we're using the unified test format, since said replacement is taken care of for us by run-tests.py. Thus, this changeset removes the calls to sed and updates the output to use the result from the framework-level replacement.
-
- Sep 14, 2012
-
-
David M. Carr authored
This change was already applied to all the other tests.
-
David M. Carr authored
This change was already applied to all the other tests.
-
David M. Carr authored
This change was already applied to all the other tests.
-
David M. Carr authored
-
durin42 authored
-
- Sep 13, 2012
-
-
durin42 authored
-
- Aug 06, 2012
-
-
Artem Tikhomirov authored
Subrepos: generate .hgsubstate and .hgsub based on gitlinks and .gitmodules, preserve gitlinks on hg commit export. Tests included. Dependency from PyPI's ordereddict to use OrderedDict
-