Mark Nauwelaerts
e0b752be8f
Move release version management to make stage
...
... to ensure setup.py does not trip some later time.
Fixes mnauw/git-remote-hg#25
2019-04-27 15:08:20 +02:00
native-api
f050de1bcc
Additional installation step in Windows
...
fixes https://github.com/mnauw/git-remote-hg/issues/23
2019-03-19 20:41:21 +01:00
Mark Nauwelaerts
0bf3db826b
Handle platform dependency in atomic file renaming
2019-01-06 15:51:42 +01:00
Mark Nauwelaerts
3698638e98
Always pass forward slash to git
...
Fixes mnauw/git-remote-hg#22
2019-01-06 15:51:42 +01:00
Mark Nauwelaerts
765f9ae287
Add python pip packaging
...
Fixes mnauw/git-remote-hg#13
v1.0.0
2018-10-14 16:27:51 +02:00
Mark Nauwelaerts
5ddcdd33ec
Adjust to Mercurial 4.7 wrt deprecated revlog method
2018-09-09 12:08:29 +02:00
Mark Nauwelaerts
435373ee83
Adjust to Mercurial 4.7 wrt more restricted changectx API
...
Fixes mnauw/git-remote-hg#18
2018-09-09 12:08:26 +02:00
Mark Nauwelaerts
5e96683f67
Adjust to Mercurial 4.6 wrt revision numbers
...
... as modified in 38f4805020437f126f5c1c8f41d78445f9ab6547
Fixes mnauw/git-remote-hg#16
v0.4
2018-05-14 21:40:37 +02:00
Mark Nauwelaerts
144f48df44
Adjust to Mercurial 4.6 wrt bookmarks
...
... as modified in cd23423029287e299d65bbece497ff09a2a673f4
2018-05-14 21:40:37 +02:00
Mark Nauwelaerts
ad36a25064
helper: adjust to Mercurial 4.6 wrt subrepo helper functions
...
... now in a separate module as of 55e8efa2451a0999b56978e471dc31dc8066a0fb
2018-05-14 21:27:40 +02:00
Mark Nauwelaerts
679e016943
Adjust to modified internals of Mercurial 4.5
...
Fixes mnauw/git-remote-hg#12
2018-02-07 18:47:18 +01:00
Mark Nauwelaerts
9f6c541a2c
test: tweak and clarify copy-rename test
...
... to align it with current git's more restricted behavior
2017-12-03 14:29:27 +01:00
Mark Nauwelaerts
476ffcbde0
test: adjust to recent git-fast-export which only detects exact copy
...
Fixes mnauw/git-remote-hg#11
2017-11-28 20:50:18 +01:00
Mark Nauwelaerts
76be528c0d
Optionally ignore some remote Mercurial revision names
...
... in particular when these would otherwise map to unsupported refnames.
Fixes mnauw/git-remote-hg#10
2017-11-27 20:57:19 +01:00
Mark Nauwelaerts
6c2f4d8ff4
Adjust to recent Mercurial API in pushing to remote
...
Fixes mnauw/git-remote-hg#9
2017-11-11 17:23:46 +01:00
Mark Nauwelaerts
e9c37f78d8
test: adjust hg subrepo configuration
2017-11-11 17:23:46 +01:00
Mark Nauwelaerts
dfa6910cab
Adjust to recent Mercurial API in hg-git mode tag handling
2017-09-21 13:15:20 +02:00
Mark Nauwelaerts
2ab9ae9073
Use ui.ui.load() only if available
2017-09-18 21:24:22 +02:00
Beren Minor
f21923b052
Add info about hg repos used as git submodules
2017-09-18 20:24:24 +02:00
Beren Minor
45866dbeba
Use ui.ui.load() to create a new ui which loads the global and user hg config
2017-09-18 13:47:01 +02:00
Renaud Casenave-Péré
eaa9361ab0
Fix README formatting
2017-08-09 19:00:41 +02:00
Mark Nauwelaerts
f0e4c95bf5
Add test for importing multiple independent histories
...
Based on reproduction steps provided by Adam Bliss.
2017-05-01 14:51:19 +02:00
David Turner
e467b22dd3
Fix obscure bug with multiple independent histories
...
If you have a repository with multiple independent histories (perhaps
that get merged later), under some circumstances revision 0 can get
imported *after* some other revision. "Independent histories" are those
that start from different zero-parent commits. I have thus far failed to
get a local reproduction on this, in part because I don't understand
how git-remote-hg choses the order in which to import branches. But
we did notice this in our production system.
If revision 0 is imported late, a reset would not be issued, and it would
be wrongly re-parented on top of whatever previous history existed, instead
of being a root-level commit.
Fix this by always issuing a reset for a parentless commit, even on
revision 0.
2017-04-21 16:47:36 -04:00
Mark Nauwelaerts
40c9eafcc9
Fix corner case version calculation
2017-03-13 20:53:44 +01:00
Mark Nauwelaerts
0bfbc0da4b
Merge pull request #4 from novalis/dturner/do-not-mangle-quotes
...
Optionally don't mangle git usernames with quotes
2016-12-06 22:02:02 +01:00
David Turner
a1ca279d92
Optionally don't mangle git usernames with quotes
...
By default, for backwards compatibility with earlier versions,
git-remote-hg removes quotation marks from git usernames
(e.g. 'Raffaello "Raphael" Sanzio da Urbino <raphael@example.com >'
would become 'Raffaello Raphael Sanzio da Urbino
<raphael@example.com >'). This breaks round-trip compatibility; a git
commit by an author with quotes would become an hg commit without,
and if re-imported into git, would get a different SHA1.
To restore round-trip compatibility (at the cost of backwards
compatibility with commits converted by older versions of
git-remote-hg), add an option 'remote-hg.remove-username-quotes'. This
option defaults to true (for backwards compatibility).
2016-12-05 16:08:01 -05:00
David Turner
e19dd84571
hack for submodules
...
A complete solution for submodules might be to convert them to hg
subrepositories. But this would, in the general case, be quite
difficult -- for instance, local copies of all historical submodule
commits might not be available, and repositories might have moved
around.
It's better to do the conversion in some understandable way than to
crash with a weird error message, so let's do that.
2016-11-29 16:41:21 -05:00
Mark Nauwelaerts
1d94ba2d42
Add compatibility for Mercurial v4.0
...
Fixes felipec/git-remote-hg#66
2016-11-22 19:54:09 +01:00
Mark Nauwelaerts
85b585b824
Make unit test for executable rename slightly more resilient.
2016-11-15 20:51:21 +01:00
David Turner
e8c88c70d9
Fix mode setting in the case of moved executable files
2016-11-14 18:13:56 -05:00
Mark Nauwelaerts
a35f93cbc1
Fix duplication typos in marks file migration.
...
Fixes mnauw/git-remote-hg#1
2016-11-12 16:18:04 +01:00
Mark Nauwelaerts
a59e1246a2
Refactor updating of notes upon fetch and push
2016-10-18 21:32:26 +02:00
Mark Nauwelaerts
cbbbaddc41
Support using shared marks files for all remotes
...
... which essentially track the shared bag of revisions that
the shared proxy repo constitutes.
2016-10-18 21:32:19 +02:00
Mark Nauwelaerts
5d429d2da1
Refactor all marks file path access through common variable
2016-10-18 21:32:11 +02:00
Mark Nauwelaerts
94bb2488e8
Fix comment typo
2016-10-18 21:32:04 +02:00
Mark Nauwelaerts
e759d5232d
README: clarify documentation on strip recovery
2016-10-18 21:31:57 +02:00
Mark Nauwelaerts
af96a84c98
Do not actually delete branch in case of dry-run
2016-10-18 21:31:48 +02:00
Mark Nauwelaerts
2ce962c5ab
Really delete the private branch ref when deleting a branch
2016-10-18 21:31:34 +02:00
Mark Nauwelaerts
8ac5532eb1
Add to copyright for recent changes
...
... as there have been quite some by now.
2016-10-18 21:18:21 +02:00
Mark Nauwelaerts
9528e757d3
git-hg-helper: use an absolute path in sharedpath to refer to shared repo
...
... as some Mercurial commands are otherwise confused, e.g. thg.
2016-08-20 11:05:54 +02:00
Mark Nauwelaerts
628c45a4a9
Avoid bytecode generation when importing
2016-08-20 11:05:54 +02:00
Mark Nauwelaerts
55689eb0a8
git-hg-helper: refactor importing sibling module
2016-08-20 11:05:54 +02:00
Mark Nauwelaerts
7be9bf3db4
git-hg-helper: ensure proper directory tracking
2016-08-20 11:05:49 +02:00
Mark Nauwelaerts
20e923cf91
git-hg-helper: gc: resurrect Mercurial repo revision checking
2016-08-20 11:05:49 +02:00
Mark Nauwelaerts
a7ea76788c
README: update documentation with latest changes on fetching
2016-08-13 14:28:04 +02:00
Mark Nauwelaerts
5999a10519
git-hg-helper: repurpose marks subcommand to gc subcommand
2016-08-13 14:28:01 +02:00
Mark Nauwelaerts
0853bc0230
Tips metadata is now obsolete on fetch as well as push
...
... so discard it altogether when reading marks.
All this also removes fetch-first error which is either no error at all or
is either really a non-fast-forward error.
2016-08-13 14:28:00 +02:00
Mark Nauwelaerts
b3fccddd9f
Transform gitrange into a more effective revwalk
...
Fixes felipec/git-remote-hg#14
Fixes felipec/git-remote-hg#26
2016-08-13 14:27:57 +02:00
Mark Nauwelaerts
7f99aa2565
Ensure sane ratio in progress reporting
2016-08-13 14:27:54 +02:00
Mark Nauwelaerts
63c742e4a6
Add warning about disabling capability_push mode
...
... as the old mode is not so safe and on its way to deprecation.
2016-08-13 14:27:52 +02:00