Edouard Gomez
ac88ce23c8
convert: add bookmark support to main command
...
During conversion, read bookmarks from source repo, filter them and push the
resulting set of bookmarks to destination sink.
2010-07-07 00:06:59 +02:00
Martin Geisler
a0a2144b94
i18n: don't mark trivial string for translation
2011-03-16 17:38:25 +01:00
Azhagu Selvan SP
346cc8ff15
convert/svn: handle MissingTool exception from converter_sink class
...
The converter_sink class had no way of handling MissingTool
exception. This change makes it to abort when there is a
MissingTool exception.
2011-02-24 00:45:02 +05:30
timeless
2c0786a591
convert: kill trailing whitespace
2010-10-20 10:07:38 +02:00
timeless
4edbb771f8
convert: fix typo in comment
2010-10-20 10:02:54 +02:00
Martin Geisler
0447137bce
convert: deprecate --authors in preference for --authormap
...
This aligns the authormap option with the other three mapping options.
The old --authors option is still supported and 'hg help convert -v'
will still show it.
2010-09-10 01:34:14 +02:00
timeless
4c60b4bbe9
convert/progress: use plural and avoid retrieving
2010-07-30 10:38:54 +03:00
Patrick Mezard
ba463ef89c
convert: display files data retrieval progress
2010-05-09 22:50:42 +02:00
Patrick Mezard
8c28124de1
convert: add progress support
2010-05-09 22:50:07 +02:00
Matt Mackall
8d99be19f0
many, many trivial check-code fixups
2010-01-25 00:05:27 -06:00
Matt Mackall
cd3ef170f7
Merge with stable
2010-01-19 22:45:09 -06:00
Matt Mackall
595d66f424
Update license to GPLv2+
2010-01-19 22:20:08 -06:00
Patrick Mezard
da332667e9
convert: fix history topology when using hg.tagsbranch
...
When using hg.tagsbranch, all conversions fail at
transcribing the source repo topology with conversion
scenarios interleaving:
- initial repo conversion,
- then upstream tag
- then later incremental conversion
The problem is caused by the usage of the last source
revid as source revid for the tagnode in the revision
map.
On a later incremental conversion, when resolving some
child commit of the true last source revid, convert
will parent the nodes to the tag node. If using
tagsbranch you get a bad topology where all incremental
commit nodes end up in the tag branch.
Analysis and test by Edouard Gomez <ed.gomez@free.fr>
2009-09-06 15:29:14 +02:00
Dirkjan Ochtman
605b944edf
kill trailing whitespace
2009-06-19 13:47:50 +02:00
Patrick Mezard
a848b6f227
convert: rewrite tags when converting from hg to hg
2009-06-01 17:12:42 +02:00
Patrick Mezard
06e4a5967d
convert: default revisions order depends on source
...
When converting Mercurial repositories you expect the revision numbers to be
preserved, while other sources conversions focus on efficiency.
2009-06-01 17:12:41 +02:00
Patrick Mezard
e8585b2da9
convert: fail fast if source does not support --sourcesort
2009-06-01 17:12:39 +02:00
Patrick Mezard
7c73a84f65
convert: add --sourcesort option for source specific sort
...
Only supported by Mercurial source for now.
2009-06-01 17:12:39 +02:00
Patrick Mezard
e3f91663d5
convert: parse sort mode sooner
2009-06-01 17:12:38 +02:00
Patrick Mezard
a745de1eb9
convert: split toposort() into subfunctions for readability
2009-06-01 17:12:37 +02:00
Patrick Mezard
0e4df85691
convert: better error on invalid repository type
2009-11-30 22:23:04 +01:00
Benoit Boissinot
04ba054816
convert: use set instead of dict
2009-05-17 03:04:17 +02:00
Greg Ward
dd681d84e9
convert: improve docstrings, comments.
2009-05-16 14:15:58 -04:00
Michael J. Pedersen
5874aad1d7
convert: adding branchmap functionality to convert extension
2009-05-13 15:03:31 -04:00
Martin Geisler
750183bdad
updated license to be explicit about GPL version 2
2009-04-26 01:08:54 +02:00
Marti Raudsepp
b717070e88
convert: handle comments starting with '#' in authormap files
2009-04-04 18:04:38 +02:00
Marti Raudsepp
f86045b534
convert: fix authormap handling of lines without '='
...
Unpacking the result from str.split raises ValueError, not IndexError, if the
line does not contain a '='.
2009-04-04 15:41:32 +02:00
Matt Mackall
642f4d7151
move encoding bits from util to encoding
...
In addition to cleaning up util, this gets rid of some circular dependencies.
2009-04-03 14:51:48 -05:00
Peter Arrenbrecht
8c3658a497
cleanup: whitespace cleanup
2009-03-23 13:13:27 +01:00
Peter Arrenbrecht
bc21361ed2
cleanup: drop unused imports
2009-03-23 13:12:07 +01:00
Frank Kingswood
a2f1d401c2
convert: Perforce source for conversion to Mercurial
2009-03-03 21:32:23 +00:00
Martin Geisler
cbcd677f60
lowercase ui.debug and assert output
...
This does not effect the log or status commands and should be okay
according to the compatibility rules.
2009-01-03 17:15:21 +01:00
Marek Kubica
0f790a60a5
convert: add bzr source
2008-09-26 20:33:47 +02:00
Patrick Mezard
94ead662e7
convert: document source and sink identifiers, fix error message
2008-09-02 22:21:19 +02:00
Martin Geisler
a791bcac31
i18n: mark strings for translation in convert extension
2008-08-31 16:12:02 +02:00
Martin Geisler
8c1d48c66f
move % out of translatable strings
...
The translators need to see the raw format string, not the result of
using the format string.
2008-08-16 14:46:56 +02:00
Patrick Mezard
b0ebcaac98
convert: reintegrate file retrieval code in sinks
...
It simplifies the sink interface and all the sinks to handle files data as they
want.
2008-06-19 00:14:24 +02:00
Patrick Mezard
df0cbbb71a
convert: allow missing tools not to stop source type detection
2008-03-20 23:32:43 +01:00
Mikkel Fahnøe Jørgensen
c3353ce9f9
initial version of monotone source for convert extension
2008-02-02 19:14:59 +01:00
Joel Rosdahl
4f8012378a
Remove unused imports
2008-03-06 22:23:41 +01:00
Thomas Arendsen Hein
deb94bc7fe
Removed trailing spaces from everything except test output
2008-03-07 00:24:36 +01:00
Marti Raudsepp
ceefe77d88
convert: Clean up authormap key=value splitting.
...
Introduces a subtle parsing difference: dstauthor can now contain '='
characters.
2008-02-28 17:37:56 +02:00
Marti Raudsepp
40ade60f8b
convert: Avoid redundant newline on authormap errors.
...
The extra rstrip is necessary in case the file has uses different line
terminators (i.e. CRLF).
2008-02-28 17:37:56 +02:00
Marti Raudsepp
c1c082f372
convert: Ignore empty lines in authormap file.
2008-02-28 17:37:56 +02:00
Bryan O'Sullivan
032bc4fcfa
convert: document splicemap, allow setting of multiple parents
2008-02-19 10:53:40 -08:00
Patrick Mezard
401c3763ae
convert: improve cycles detection message
2008-02-16 11:55:33 +01:00
Patrick Mezard
c909c274fa
Merge with crew-stable
2008-02-16 12:46:28 +01:00
Patrick Mezard
b6695538ff
convert: fix --datesort ordering
...
Two branches a and b starting at root, with commits interleaved like:
root a0 a1 b0 a2 a3 b1
were converted in the following order:
root a0 b0 a1 b1 a2 a3
Replace depth based toposort with a more classic traversal method.
2008-02-16 11:55:33 +01:00
Kirill Smelkov
518f3df46c
[RFC] convert: fix --datesort
...
The problem is that previously commit.date was used for sorting, but it's a
string like "1 Jan xxx 2007", so it it wrong to use it for sorting.
Another problem is that why we are using depth for sorting -- I have no clear
answer -- it seems to be plain wrong.
This patch is just an RFC.
2007-12-18 14:01:34 -06:00
Patrick Mezard
fd2ee26173
convert: hg.clonebranches must pull missing parents (issue941)
2008-01-26 19:55:04 +01:00