Brendan Cully
1182e4bbb6
pull: more conservative count of new heads
...
Testing against the k-9 repository I realized I am counting too many
references as changed after a pull.
2011-05-20 09:47:50 -07:00
Brendan Cully
a36df4d3a1
Make pull results more like hg pulls.
...
Returns the number of changed heads (refs).
Uses the same "no changes found" message.
2011-05-18 15:12:32 -07:00
Augie Fackler
838af18b9f
test-pull-after-strip: Update expectations since we are not refetching objects
2011-05-18 08:14:02 -05:00
Brendan Cully
001a4d567d
Only fetch objects that are not already present.
...
fetch_pack was needlessly walking every ref even when the refs were already
known locally.
2011-05-18 00:31:40 -07:00
Brendan Cully
00fdcfbbc3
Catch GitProtocolError wherever HangupException can occur.
...
With recent changes to dulwich, this exception occurs in more places.
2011-05-18 00:31:40 -07:00
Augie Fackler
bd7b30f743
tests: update expectations after message cleanups
2011-05-18 08:10:00 -05:00
Brendan Cully
e6be1640a8
Message cleanups
...
Only show importing/exporting messages when there is something
to do. Change "importing Hg objects into Git" to "exporting
hg objects to git" (and lowercase the other direction).
2011-05-18 00:31:36 -07:00
Brendan Cully
b7699cab00
Improve error reporting in get_refs
...
With this patch, attempts to push (or run outgoing) to read-only git URLs
at github return github's helpful error message instead of just saying
the remote end hung up.
2011-05-17 16:26:13 -07:00
Augie Fackler
479bebaa1f
tests: cope with output format changes in hg 1.8
...
These test changes should make it easier to see what's still broken in
1.8 and 1.9. Ideally, we'll drop pre-1.8 versions soon and rip most of
this out, but I'm not sure how realistic that is in the short term.
2011-05-15 17:04:05 -05:00
Augie Fackler
74b9553cd5
Cope with new discovery code without crashing.
2011-05-15 12:26:24 -05:00
Augie Fackler
e7abdc3a9a
url wasn't ever published as url.url, and is now util.url
2011-05-15 12:26:03 -05:00
Augie Fackler
b2953e0941
git_handler: support versions of hg without bookmarks
2011-05-15 12:24:25 -05:00
Augie Fackler
12ed874aa4
tests: use run-tests.py's built-in daemon killing
...
Makes interrupting a test run more graceful and overall less
frustrating.
2011-05-15 12:23:53 -05:00
Adrian Sampson
ea2c812385
fix for "outgoing" (previously, always printed all revisions)
2011-05-10 21:39:17 -07:00
Adrian Sampson
e833363641
activate a tipmost bookmark (git branch) after clone
2011-05-10 21:13:18 -07:00
Mads Kiilerich
be6c59edbe
compatibility with new url handling in Mercurial 1.9
2011-04-05 13:31:28 +02:00
Augie Fackler
e0d8a4f3f9
Merge spaces in tags fix.
2011-03-23 21:31:26 -05:00
DontCare4Free
9ac9903dfb
Indenting fix
2011-03-24 00:26:32 +01:00
DontCare4Free
f9dd37eac6
Made hggit.git_handler.get_changed_refs try to use commands.bookmark before trying with bookmarks.bookmark, for compatibility with Mercurial 1.8+.
2011-03-24 00:13:59 +01:00
Dmitry Gladkov
dc604a8d5b
fix handling of spaces in hg tag names
2011-03-23 02:43:32 +02:00
Augie Fackler
3fdf187108
setup.py: bump to version 0.2.6
2011-03-01 08:24:33 -06:00
Augie Fackler
d4ab466278
git_handler: update ctx label handling for bookmarks in core
2011-03-01 08:23:09 -06:00
Kevin Bullock
2de8317548
support upcoming Mercurial 1.8
2011-02-24 16:51:40 -06:00
timeless
e0e5ff5a22
progress: use gerund form for import
2011-02-22 14:58:35 +01:00
Alexey Sokolov
f07d1aba51
Fix "hg outgoing" for mercurial versions which look like 1.6.x
...
Previous commit (hg-c1876c8a2531) assumed that there's nothing between
1.6 and 1.7
But 1.6.3 is more than 1.6, while still less than 1.7
2011-02-15 13:35:03 +06:00
jsumners
162fcb35fb
I found that inspect.getargspec(discovery.findoutgoing)[0]
was returning []
instead of the expected function definition.
...
Since the change occurred between Mercurial 1.6 and 1.7, a simple version check works instead.
This fixes https://github.com/schacon/hg-git/issues/issue/168
2011-02-09 10:21:36 -05:00
Mads Kiilerich
f05e529556
Create ssh subprocess with a shell command instead of an exec list
...
This allows ui.ssh to be configured with a command line fragment instead of
just the name of an executable.
2010-12-25 23:49:16 +01:00
Augie Fackler
3cc0a94981
tests: also test against hg 1.7.2
2010-12-22 20:20:15 -06:00
Tay Ray Chuan
b96ab4cee9
pass hg's ui.ssh config to dulwich
...
This allows Windows users to override dulwich's default (the unix-y
ssh).
2010-12-22 16:57:26 -06:00
Augie Fackler
83cbd0b18e
Fix bug where remote ref map wrote out binary nodes.
2010-12-20 23:30:16 -06:00
Augie Fackler
6e81a1af77
hgrepo: completely rework handing of remote refs marking
...
Previously, we appended to .hg/localtags on every pull. This meant
that we never deleted refs that disappeared on the remote server, and
the file length grew without bound. Now we use our own file
(.hg/git-remote-refs) and we do prune refs that disappear from the
remote server.
2010-12-20 22:37:07 -06:00
Augie Fackler
1b5193949d
test-git-workflow: mark git repo as not bare so we can do commits
2010-11-16 08:34:26 -06:00
Augie Fackler
a5662069b9
setup: bump version to 0.2.5
2010-11-02 08:37:41 -05:00
Augie Fackler
8268cc74ed
Makefile: add .PHONY so tests will run correctly
2010-10-29 08:36:29 -05:00
Augie Fackler
006aedf259
demandimport: defend against collections breakage in new dulwich
2010-10-29 08:31:42 -05:00
Mike Blume
b4ec782ca1
fix typo -- my bad >.<
2010-10-24 14:19:39 -07:00
Mike Blume
266b9b4429
Looks like the latest version of Dulwich returns a tuple here. Let's handle that
2010-10-24 14:00:32 -07:00
Augie Fackler
de4ddb6d89
setup: bump version number
2010-08-25 15:45:46 -05:00
Dan Villiom Podlaski Christiansen
3c85b4f11a
Makefile: *BSD support.
2010-08-25 22:38:30 +02:00
Augie Fackler
9f10d7eb3e
Merge version fixes with new tests that identify the breakage.
2010-08-15 09:46:00 -05:00
Augie Fackler
c13e8ed89d
tests: import test-push-r (with slight changes) from Mercurial
...
This lets us detect defects in our wrappers which would break
Mercurial when working against normal hg repositories with hg-git
enabled.
2010-08-15 09:45:00 -05:00
Augie Fackler
58357619af
Makefile: add target for testing against many hg versions at once
2010-08-15 09:41:28 -05:00
Augie Fackler
fe874e7b7f
findoutgoing: update wrapper for hg change d844bc669660
2010-07-30 17:24:28 -05:00
Augie Fackler
c452d54ea2
test-git-submodules: update for git output format change
2010-07-30 16:12:13 -05:00
Dan Villiom Podlaski Christiansen
332ae4f274
hgrepo: fix compatibility with Mercurial 1.5
2010-07-20 16:20:41 +02:00
Augie Fackler
88aca45a94
findoutgoing: more flexible wrapper function that should be more portable
2010-08-14 21:34:34 -05:00
Augie Fackler
139afc6667
Bump version to 0.2.3
2010-07-05 11:56:04 -05:00
Augie Fackler
e2638245c2
gitrepo: update for pushable bookmarks
2010-07-05 11:54:06 -05:00
Augie Fackler
212cef6c15
test-url-parsing: defend against changes in dulwich
2010-07-05 11:47:34 -05:00
Augie Fackler
d421c65e08
hgrepo: pass through newbranch arg if pushing to hg
2010-06-18 08:20:47 -05:00