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
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
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
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
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
fe874e7b7f
findoutgoing: update wrapper for hg change d844bc669660
2010-07-30 17:24:28 -05:00
Augie Fackler
e2638245c2
gitrepo: update for pushable bookmarks
2010-07-05 11:54:06 -05:00
Augie Fackler
d421c65e08
hgrepo: pass through newbranch arg if pushing to hg
2010-06-18 08:20:47 -05:00
Augie Fackler
bbfe593b68
Add just enough code to handle changes to cset discovery.
2010-06-12 21:49:14 -05:00
Augie Fackler
185de4bf07
Merge documentation of in-tree and cleanup of the variable.
2010-06-12 21:23:01 -05:00
Tay Ray Chuan
75b937c19c
enforce stricter matching for pull -r
...
Use an exact match with the ref name ('foo' in 'refs/heads/foo'),
instead of just checking if it ended with '/foo'.
This allows
$ hg pull -r foo
to run successfully on a repo containing the branches
- 'foo',
- 'mine/foo',
- 'theirs/foo'
2010-06-02 20:14:26 +08:00
Augie Fackler
28545e94bc
Merge fix from Benoit Allard
2010-06-12 21:19:40 -05:00
Augie Fackler
5518aa1a5a
Cope with tags being sorted (hg cset 0376c4f17df5) by backporting that behavior
2010-06-12 21:14:33 -05:00
Augie Fackler
b6ff51f6c0
push: handle argspec change from a00aac92bfb9
2010-06-12 21:12:21 -05:00
Benoit Allard
a808ff61ec
Fix a traceback when accessing _get_object() on Tag
2010-05-20 00:16:59 +02:00
Tay Ray Chuan
4b2fb41612
explicitly expect boolean values for git.intree
2010-05-17 20:04:02 +08:00
Augie Fackler
c9fb39537b
Un-break hg 1.3 by adding a compat layer for progress.
2010-04-30 10:35:13 -05:00
Augie Fackler
a6ef0b0441
Merge style fix
2010-04-05 19:06:48 -05:00
Augie Fackler
5919da5815
git_handler: prefer () continuation to \ continuation.
2010-04-05 19:06:20 -05:00
Tay Ray Chuan
fff9a81fa3
Merge branch 'rc/push-tag' into rc/master
2010-04-04 23:26:46 +08:00
Tay Ray Chuan
58dec6d0a4
when pushing, check if server is advertising annotated tags
...
Check if already we have these annotated tags; if so, don't push it.
Update test-git-tags too.
2010-04-04 23:16:00 +08:00
Tay Ray Chuan
e09d350f36
Merge branch 'rc/fix-ann-tags' into rc/master
2010-04-04 19:23:34 +08:00
Tay Ray Chuan
8bce9096c1
update references to Tag.get_object()
...
dulwich recently renamed [1] the Tag.get_object() method to
_get_object(). Update our usage correspondingly.
[1] git reference: f85ce56 (Support determining blob id without joining
all chunks first.)
2010-04-02 20:08:14 +08:00
Tay Ray Chuan
5fae58d6aa
handle apply_delta() return value correctly
...
dulwich recently changed apply_delta() [1] to return lists. Invoke
join() on the output with an empty string, as dulwich does in its
codebase.
[1] git reference: a2709f6 (Return chunks from apply_delta.)
2010-04-02 19:56:50 +08:00
Tay Ray Chuan
dbadcb184b
update_remote_branches: don't store de-refed tags
...
If a git tag is of the annotated-type, the git server sends an
additional line with the SHA-1 the tag dereferences to (eg.
refs/tag/mytag^{}). These aren't "real" tags, so don't store them.
2010-03-29 13:19:52 +08:00
Tay Ray Chuan
336ec5a893
update_remote_branches: refactor head usage
...
Splice the ref name only once, and don't loop through refs/heads
multiple times.
This changes the order in which hg tags are created; update test output
to reflect this.
2010-03-29 13:19:00 +08:00
Tay Ray Chuan
41495ccdb6
update_remote_branches: don't prepend '/' to heads
...
We were saving tracking branches to 'refs/remotes/<remote>//<ref>'
(double slash).
2010-03-29 13:00:49 +08:00
Augie Fackler
a18abe29e6
Merge debug message fix.
2010-03-27 22:20:18 -05:00
Augie Fackler
d1961293e0
Various hg 1.4 compat fixes.
2010-03-27 21:37:58 -05:00
Augie Fackler
4e59f313a6
pull: make it possible to un-wedge the repo after stripping git revs
...
This adds a new command, which is inelegant, but it lets you safely
pick up pulling fairly quickly.
2010-03-25 20:24:00 -05:00
Augie Fackler
65560ee872
hggit: defend against exceptions when pulling with -r
2010-03-25 20:23:00 -05:00
Augie Fackler
c3fa923231
hggit: don't wrap gitrepo with hgrepo
2010-03-25 20:23:00 -05:00
Augie Fackler
bf0efb8a3e
git_handler: 80 columns cleanup
2010-03-25 19:39:00 -05:00
Augie Fackler
c5bfabbe71
git_handler: fix % formatting in ref errors.
2010-03-25 19:37:00 -05:00
Tay Ray Chuan
23362335d5
export_hg_commit: fix debug note
...
We were outputting the raw SHA-1.
2010-03-22 12:25:33 +08:00
Abderrahim Kitouni
2c65097235
fix gimport and add test for using to work on hg repos from git (issue 73)
2010-02-26 19:27:32 +01:00
jeremy avnet
c6ea6998e8
Don't import git submodule files (we don't support them .. yet).
2010-02-23 16:23:09 -05:00
Augie Fackler
fc62064c74
git_handler: use progress API instead of reinventing the wheel
2010-02-24 21:08:38 -06:00