- Oct 29, 2012
-
-
David M. Carr authored
Eliminate a find that would always return 0, based on an example in git_handler update_hg_bookmarks.
-
- Oct 27, 2012
-
-
David M. Carr authored
This should fix a bug introduced by 4f4ab2d89375 which caused all tags to be duplicated as bookmarks on pull. Test coverage has been added for pull to allow verifying the fix.
-
- Oct 26, 2012
-
-
durin42 authored
-
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.
-
David M. Carr authored
This changeset adds test coverage for comparing "hg outgoing -B" in normal Mercurial usage with Hg-Git usage. This didn't match, since previously, gitrepo didn't provide a meaningful listkeys implementation. Now, it does. gitrepo now has access to a GitHandler when a localrepo is available. This handler is used to access the information needed to implement listkeys for namespaces (currently, only bookmarks) and bookmarks. A couple of other tests were testing "divergent bookmark" scenarios. These tests have been updated to filter out the divergent bookmark output, as it isn't consistent across the supported Mercurial versions.
-
- Oct 25, 2012
-
-
David M. Carr authored
This change wraps hg.peer to allow for capturing the repo object. It is then passed in to new gitrepo instanceds. This will be needed to implement later functionality, such as richer bookmark support using pushkeys.
-
David M. Carr authored
In the logic that was attempting to handle the case where the local repo doesn't have any bookmarks, the assumption was being made that tip resolved to a non-null revision. In the case of a totally empty local repo, however, that isn't a valid assumption, and resulted in attempting to set the master ref to None, which broke dulwich. The "fix", which avoids the traceback and allows the push to complete (though still do nothing, since in this case there aren't any changes to push), is to not tweak the refs at all if tip is nullid. Leaving the special capabilities ref and not adding a master ref appears to be fine in this case.
-
- Oct 18, 2012
-
-
Jordi Gutiérrez Hermoso authored
Python 2.4 does not have a with-statement
-
- Oct 17, 2012
- 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.
-
- Sep 28, 2012
-
-
David M. Carr authored
Mercurial has support for including information about the tested versions of Mercurial for an extension when it detects that an extension has broken. This change includes the appropriate attribute in the extension.
-
David M. Carr authored
Mercurial has support for including a link to an issue tracker when it detects that an extension has broken. This change includes the appropriate attribute in the extension, pointing it at the issue tracker for the main BitBucket repo.
-
David M. Carr authored
There was a bug introduced in 8c1f2b07c04b such that calling hg outgoing on a Git repository would result in all refs being deleted from the remote repository (with the possible exception of the currently checked out branch). It wasn't noticed before because the existing test for outgoing didn't actually verify the refs on the remote. This changeset fixes the bug, as well as adding test coverage to allow verifying that the fix works.
-
- Sep 22, 2012
-
-
Gregory Szorc authored
When exporting Git commits, verify that the tree and parents objects exist in the repository before allowing the commit to be exported. If a tree or parent commit is missing, then the repository is not valid and the export should not be allowed.
-
Gregory Szorc authored
-
Gregory Szorc authored
-
Gregory Szorc authored
-
Gregory Szorc authored
-
Gregory Szorc authored
-
Gregory Szorc authored
Pre-compile regular expression. Prevent extra key lookup in author_map.
-
- Sep 14, 2012
-
-
David M. Carr authored
-
- Sep 13, 2012
-
-
David M. Carr authored
-
- Sep 09, 2012
-
-
durin42 authored
-
- Sep 06, 2012
-
-
David M. Carr authored
-
David M. Carr authored
-
David M. Carr authored
While working on some other tests, I noticed that the push command was returning exit code 1 on success. This changeset makes hgrepo.push use the same return code contract as localrepo.push, which makes the exit codes behave as expected.
-
- Aug 23, 2012
-
-
David M. Carr authored
Support for Hg 1.5.4 was removed, as it doesn't support revsets and is older than the earliest version we want to put special effort into supporting.
-
David M. Carr authored
-
David M. Carr authored
-
- Aug 28, 2012
- 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
-
- Aug 13, 2012
-
-
kiilerix authored
-
- Jul 26, 2012
- Jul 08, 2012
-
-
Toshi MARUYAMA authored
-
- Jul 26, 2012
-
-
Artem Tikhomirov authored
-
- Jul 20, 2012
-
-
durin42 authored
-