Commit Graph

589 Commits

Author SHA1 Message Date
Patrick Mezard
4d356cb83b Merge with crew-stable 2009-04-21 16:02:59 +02:00
Patrick Mezard
33d1383a9e Merge with crew-stable 2009-04-21 14:25:36 +02:00
Patrick Mezard
e893f02e4f convert/svn: support more OS specific auth providers via svn 1.6 API 2009-04-22 23:13:39 +02:00
Martin Geisler
80dd126e92 remove unnecessary outer parenthesis in if-statements 2009-04-22 01:39:47 +02:00
Ronny Pfannschmidt
0cd168d6ec switch lock releasing in the extensions from gc to explicit 2009-04-22 02:01:22 +02:00
Wagner Bruna
44eb149a36 convert: fix typo 2009-04-05 05:13:39 -03:00
Greg Ward
524e44bf0e cvsps: make debugging easier by adding __repr__() methods. 2009-04-18 09:43:21 -04:00
Greg Ward
53ff712654 cvsps: update docstring for changeset class. 2009-04-18 09:44:51 -04:00
Patrick Mezard
cd3505dbbc Merge with crew-stable 2009-04-13 21:57:17 +02:00
Augie Fackler
1115665ae8 convert: Improved svn source detection. 2009-04-04 20:19:51 -05:00
Dirkjan Ochtman
fe39d83f68 cleanup: remove all trailing whitespace 2009-03-23 13:11:11 +01:00
Greg Ward
c9426abe07 cvsps: recognize and eliminate CVS' synthetic "file added" revisions. 2009-03-18 09:15:38 -04:00
Dirkjan Ochtman
0027b7f5ed convert: honor 2.3 compatibility (rsplit) 2009-03-18 17:49:11 +01:00
Michael Springmann
10782daaf2 exporting patch:
Fixed behavior of revsplit for branch names including the @-symbol.
2009-03-13 21:14:57 +01:00
Frank Kingswood
a2f1d401c2 convert: Perforce source for conversion to Mercurial 2009-03-03 21:32:23 +00:00
Matt Mackall
6ed04dc163 convert: change hg.saverev default to False
This needlessly breaks changeset identifiers for the common case (cleaning
history), which is sad.
2009-03-02 19:19:12 -06:00
Patrick Mezard
a78816efb1 convert/mtn: allow monotone database files as sources 2009-04-11 23:43:24 +02:00
Patrick Mezard
257f0454c4 Merge with crew-stable 2009-04-11 23:21:39 +02:00
Patrick Mezard
d34099656d convert/cvs: delay CVS log parsing after initialization (issue1581/2)
Source and destination constructors should be fast so configurations issues are
hit quickly, including authentication and filemap/authormap/splicemap issues.
Delaying might be a problem if the remove side disconnects idle connections
while the log is being read. It did not happen when converting openafs
repository, where log retrieval took at least 10mn.
2009-04-11 21:17:11 +02:00
Patrick Mezard
b6f490f554 convert: better mapfile parsing errors (issue1581/1) 2009-04-11 21:15:27 +02:00
Patrick Mezard
ea6ab7b729 Merge with crew-stable 2009-04-11 20:49:47 +02:00
Patrick Mezard
8b64865271 Merge with crew-stable 2009-04-08 23:24:22 +02:00
Martin Geisler
42fa3800bd expand "rev" to "revision" in help texts 2009-04-07 23:06:50 +02:00
Martin Geisler
ea1734b579 expand "dir" to "directory" in help texts 2009-04-07 22:47:56 +02:00
Martin Geisler
1e1d82e968 convert: align option types in help text 2009-04-05 13:20:30 +02:00
Martin Geisler
69ba878bb4 convert: word-wrap help texts at 70 characters 2009-04-04 23:16:55 +02:00
Martin Geisler
04b0d911a3 Change double spaces to single spaces in help texts. 2009-04-04 21:09:43 +02:00
Matt Mackall
f2b63f05d7 convert: attempt to check repo type before checking for tool 2009-04-04 12:28:13 -05:00
Rocco Rutte
4e357910ab convert: simple fix for non-existent synthetic/mergepoint attributes 2009-04-04 18:08:41 +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
Pavel Volkovitskiy
d933c50ed4 right way to check if file was in renamed directory, fixes import monotone
repos with renamed directories
2009-04-02 22:25:49 +04:00
Henrik Stuart
ced279d296 convert: added cvsnt mergepoint support 2009-04-02 14:48:06 +02:00
Greg Ward
4d99354f37 issue1578: fix crash: do not use synthetic changesets as merge parents. 2009-03-28 12:27:20 -04: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
Greg Ward
558dacc406 issue1582: improve description of splicemap syntax in help. 2009-03-31 15:52:48 -04:00
Mads Kiilerich
36ec467f85 convert: missing p4 tool is only slightly fatal
checktool with default abort=True caused convert to fail too early.
2009-03-27 13:39:18 +01:00
Peter Arrenbrecht
8c3658a497 cleanup: whitespace cleanup 2009-03-23 13:13:27 +01:00
Peter Arrenbrecht
19591b6a8c cleanup: drop unused assignments 2009-03-23 13:13:06 +01:00
Peter Arrenbrecht
a2d3e23eef cleanup: drop variables for unused return values
They are unnecessary. I did leave them in localrepo.py where there is
something like:

  _junk = foo()
  _junk = None

to free memory early. I don't know if just `foo()` will free the return
value as early.
2009-03-23 13:13:02 +01:00
Peter Arrenbrecht
bc21361ed2 cleanup: drop unused imports 2009-03-23 13:12:07 +01:00
Stefan Rusek
fa6e60da35 Handle when the slicemap option is an empty string
In the cmdtable for the convert extension, the default value for splicefile is
empty string, while mapfile (the class that reads splicemaps) expects either a
real path or None. This patch changes mapfile to expect a real path or logical
false (False, None, empty string, etc.)
2009-02-11 21:47:57 +01:00
Martin Geisler
b92ca8a7fb convert: marked string for translation 2009-02-03 21:38:36 +01:00
Matt Mackall
e0735a1762 error: move repo errors
rename NoCapability to CapabilityError
2009-01-12 10:42:31 -06:00
Matt Mackall
d15d559b7c errors: move revlog errors
- create error.py for exception classes to reduce demandloading
- move revlog exceptions to it
- change users to import error and drop revlog import if possible
2009-01-11 22:48:28 -06:00
Patrick Mezard
92c099fb7a convert: display child command output if --debug (fix febd034db218) 2009-01-08 14:26:30 +01:00
Bryan O'Sullivan
886d5dda85 convert: print darcs error messages iff --debug 2009-01-07 17:33:29 -08:00
Bryan O'Sullivan
693c273256 convert: check for darcs-2-compatible path 2009-01-07 17:33:07 -08:00
Patrick Mezard
cdcf39e446 Merge with crew-stable 2009-01-05 14:37:46 +01:00
Patrick Mezard
cfa7c44e4c convert/gnuarch: fix switched copy source and destination
Reported by Edouard Gomez <ed.gomez@free.fr>
2009-01-05 14:34:20 +01:00
Benoit Boissinot
722aaa1329 merge with crew 2009-01-04 21:49:37 +01:00
David Champion
f484d83337 cvsps: cvs log loop uses lookahead to avoid misleading text
Changes cvsps.py's cvs log reader to use a one-line lookahead, so
that possibly misleading log messages can be disambiguated.  In
particular I have past committers who used cvs log's 28-character
row of hyphens within commit messages; this throws cvsps and disrupts
conversion.  The only alternative in this case is to edit the cvs
,v file by hand, which bloodies mercurial's "don't change history"
principle.
2009-01-04 01:43:12 -06:00
Edouard Gomez
ab724af676 convert/gnuarch: recode cat-log parts to utf-8 to be hg.description friendly 2009-01-04 18:44:39 +01:00
Edouard Gomez
d7aad5cf36 convert/gnuarch: add cat-log payload to commit description 2009-01-04 18:44:30 +01:00
Dirkjan Ochtman
0d446da451 convert/gnuarch: correct indentation 2009-01-04 19:12:42 +01:00
Benoit Boissinot
f1393e61f3 merge with crew 2009-01-04 13:52:28 +01:00
Edouard Gomez
778729ff46 convert/gnuarch: follow continuation-of revisions
Built on top of previous patches:
 - continuation-of parsing
 - registered archives retrieval
 - use of fully qualified revisions

This allows the converter scanning for more source revisions
following the tree versions 'leaked' through the continuation-of
informations. Coupled with the registered archives retrieval, this
makes possible to decide to follow such a hint or stop scanning for
more revisions.

This also implies some changes in the retrieval of some base-0
revisions when they're continuation-of other revisions, in that
case a 'replay' will work where a simple 'get' fails because the
dir exists already. I found the code dealing with 'replay' quite
good as it has already a fallback to 'get' in the error path.
2009-01-04 02:36:48 +01:00
Edouard Gomez
4ea7ad0c50 convert/gnuarch: retrieve known archive names list
This will make possible in a followup patch to prevent
following history that is not reachable because an archive
is unknown to the user.
2009-01-04 02:36:48 +01:00
Edouard Gomez
dd0c6f737a convert/gnuarch: parse continuation-of revisions in gnuarch source
In GNU Arch, continuation-of was often used for:
 - tagging revisions
 - continue working on a project in a new archive, because arch
   was scaling poorly in revision numbers (cat-logs were slow
   to be parsed and scanned through)
 - very similar to the previous point, fork his own branch of
   a project.

Parsing this header information will allow to 'follow' new history
because it often hints at older/forked/personal revision trees.

This patch however just implements the parsing of the
continuation-of header. A followup patch will implement the proper
use of this new information.
2009-01-04 02:36:48 +01:00
Edouard Gomez
0c747d809d convert/gnuarch: use fully qualified revisions
There is no need loosing information in the conversion process. This could
lead to wrong shamap mappings if different archives used the same 'version'
naming.
2009-01-04 02:36:48 +01:00
Edouard Gomez
44d6dc97e7 convert/gnuarch: keep track of original revision in extra headers
It seems to be standard to populate the .rev attribute of a commit
to keep track of original SCM revision names.

Just do it(tm).
2009-01-04 02:36:48 +01:00
Edouard Gomez
d2bfa6d72f convert/gnuarch: robustify cat-log retrieval
GNU Arch used to scale very poorly when revision number was
increasing. This was mostly caused by the huge amount of
cat-log it has to scan/read through to keep track of all
patches that were merged in a given revision.

In order to improve things, cat-log prunning was a common
admin task that would accelerate cat-log parsing at the expense
of unreachabe locally stored cat-logs.

However, these missing cat-logs are still available in the archive.
So try to get them from the archive as a fallback solution.
2009-01-04 02:36:48 +01:00
Edouard Gomez
65ccb5e0de convert/gnuarch: set prefered locale for str conversions
Seems necessary, as a test on my archives goes further with this.
2009-01-04 02:36:48 +01:00
Edouard Gomez
1e555765a3 convert/gnuarch: fix cat-log parsing
cat-log parsing was very wrong. It assumed the Summary header
was comming last, which is wrong. Plus the code was buggy because
it was concatenating all headers in the summary.

As parsing GNU Arch isn't trivial, and python email code does it
so well... just use that ;-)
2009-01-04 02:36:48 +01:00
Edouard Gomez
d5da3e53f1 convert/gnuarch: remove unused code
Debug stuff ? Wipe it.
2009-01-04 02:36:48 +01:00
Dirkjan Ochtman
19267d8a4d cvsps: kill some more trailing whitespace 2009-01-03 21:25:19 +01: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
Martin Geisler
23608038bf lowercase help output
Changes docstrings to begin with a lowercase word. Only docstrings
used in help output is changed.

Scripts are not expected to grep the output of 'hg help' so this
change should pose no problem with regard to the compatibility rules.
2009-01-03 17:15:15 +01:00
Frank Kingswood
e9b2b07250 convert-cvs: correctly handle Removed replies, fixes bug 1427 2008-12-11 13:33:35 +00:00
Patrick Mezard
1620a3ec34 Merge with crew-stable 2008-12-14 18:13:41 +01:00
Frank Kingswood
3e985ec0a4 Add debugcvsps command, replacing cvsps script 2008-12-10 14:02:54 +00:00
Patrick Mezard
951d92c2e0 Merge with crew-stable 2008-12-06 20:17:45 +01:00
Patrick Mezard
a03d1cd8a8 convert: backout 54f9cfa0c3a5
This change is brain damaged, there is no reason the copyfrom revision of the
project items may have any relevance when deciding the revision parent. It is
meaningful only when fetching files content.

Incorrect converted graph was spotted in pyglet svn repository at:

------------------------------------------------------------------------
r274 | r1chardj0n3s | 2006-12-21 02:02:14 +0100 (Jeu, 21 Dec 2006) | 2 lines
Changed paths:
   A /branches/richard-glx-version (from /trunk:269)
   M /branches/richard-glx-version/pyglet/window/xlib/__init__.py
   R /branches/richard-glx-version/tests/test.py (from /trunk/tests/test.py:270)
   R /branches/richard-glx-version/tools/info.py (from /trunk/tools/info.py:272)
   R /branches/richard-glx-version/website/get_involved.php (from /trunk/website/get_involved.php:273)

Branching to horribly mangle GLX
2008-12-06 20:10:31 +01:00
Benoit Boissinot
193deb723b convert/cvs: do not compare None with int 2008-12-06 15:40:04 +01:00
Patrick Mezard
9ac3f8c16d convert: improve reporting of invalid svn bindings 2008-11-30 22:51:42 +01:00
Patrick Mezard
ec5e4be1e7 convert: work around svn.ra.get_files() not releasing input buffer 2008-11-30 22:01:26 +01:00
Thomas Arendsen Hein
efbb4bc0d2 Improvement to 14ce129cfcd: Use try/except and pass filename on errors
Without the second part, the error message would be
  abort: Is a directory
instead of
  abort: Is a directory: /home/user/.cvspass
2008-11-28 11:38:41 +01:00
Edouard Gomez
88835d384f convert: check existence of ~/.cvspass before reading it 2008-11-27 10:13:20 +01:00
Mads Kiilerich
b9c26e8467 convert cvs: Fix branch name parsing
cvsps version 2.2b1 as found in Fedora 10 outputs the following format:
---------------------
PatchSet 1
Date: 2008/11/26 00:59:46
Author: mk
Branch: HEAD
Tag: (none)
Branches: INITIAL
Log:
Initial revision

Members:
	a:INITIAL->1.1
	b/c:INITIAL->1.1

---------------------

The parser overwrote the Branch value with noise from the misparsed Branches
value.
2008-11-27 22:04:51 +01:00
Patrick Mezard
66e081318f Merge with crew-stable 2008-11-15 15:57:12 +01:00
Patrick Mezard
ce81a90498 convert: be even more tolerant when detecting svn tags
Former code failed when tracking child directories we assumed were renamed with
their parents but were really created in the tags directory. This happens in
jQuery repository with /tags/ui/1.5b4/release@5455.
2008-11-15 15:51:26 +01:00
Benoit Boissinot
ea7fe6dacc remove unused variables 2008-10-28 19:25:26 +01:00
Patrick Mezard
0147011be6 Merge with crew-stable 2008-10-26 14:02:32 +01:00
Patrick Mezard
844a06bfd6 convert: fix non-ASCII filenames retrieval from git sources (issue 1360) 2008-10-26 13:23:02 +01:00
Patrick Mezard
54f7c66fa0 convert: read git output in binary mode under Windows (issue 1359) 2008-10-23 14:05:11 +02:00
Dirkjan Ochtman
e085823cf1 clean up trailing spaces 2008-10-20 14:51:55 +02:00
Edouard Gomez
bea37bac1c convert: return remote branches in git source
When converting git repos, all stuff happening on branches
seems to be ignored.

This is caused by the fact a "git clone" of a remote git
repo has all its branches prefixed with "origin/". By
chance, the "origin/master" branch is always linked to a
local "master" branch. So getheads() returns only the
master head, and it ignores all the other heads.

Make sure getheads() returns all heads, forcing remote
branches to be return by git-rev-parse.
2008-10-19 00:32:23 +02:00
Thomas Arendsen Hein
912f59bb30 Remove trailing spaces. 2008-10-24 15:00:40 +02:00
Patrick Mezard
a90ccace70 convert: correctly detect missing revlog for root revisions 2008-10-23 23:03:09 +02:00
Patrick Mezard
f10fc4ae24 convert: ignore hg source errors with hg.ignoreerrors (issue 1357)
This flag makes missing revlog errors to be ignored which allow broken
repositories to be fixed by converting them from and to Mercurial.
2008-10-21 21:24:47 +02:00
Patrick Mezard
f93bdf76d1 Merge with crew-stable 2008-10-23 15:44:23 +02:00
Dirkjan Ochtman
f5ea74b223 clean up trailing spaces, leading spaces in C 2008-10-20 14:57:04 +02:00
Dirkjan Ochtman
664ef048a7 merge with crew-stable 2008-10-20 14:52:58 +02:00
Thomas Arendsen Hein
0bafe8661c convert documentation: --config argument with spaces needs quoting. 2008-10-19 15:24:33 +02:00
Patrick Mezard
3eb95e081f convert: properly encode subversion URLs (issue 1224) 2008-10-10 11:36:02 +02:00
Patrick Mezard
0107794fd2 convert: tolerate embedded spaces in filemap source revisions 2008-10-10 11:32:38 +02:00
Matt Mackall
e03f4e2f73 util: set_flags shouldn't know about repo flag formats 2008-08-10 21:55:06 -05:00
Thomas Arendsen Hein
1b6356a390 convert: Fix debugging output when running multiple commands with xargs. 2008-08-08 18:37:50 +02:00
Patrick Mezard
dac1504d71 convert: normalize paths sent to svn get_log (issue 1219) 2008-07-27 17:09:33 +02:00
Patrick Mezard
da68d00afc convert: remove leading slash from ra.check_path inputs (issue 1236) 2008-07-25 20:43:41 +02:00
Patrick Mezard
beff6fa2b6 convert: restore previous svn transport parent correctly 2008-07-25 20:37:41 +02:00
Dhruva Krishnamurthy
efe9469ff7 convert: use git executable only, with subcommands
The latest GIT has some changes in the way it is installed. Only the 'git'
executable need to be in the path. All other commands are treated as sub
commands of 'git'.
2008-07-24 22:44:15 +02:00
Dirkjan Ochtman
67bd09df5b python2.6: use subprocess if available 2008-10-05 21:35:26 +02:00
Patrick Mezard
71877ea8d9 convert: make built-in cvsps the default
Reviewed by Frank Kingswood <frank@kingswood-consulting.co.uk>
2008-10-15 20:14:28 +02:00
Patrick Mezard
8e45917fce convert: fix builtin cvsps under Windows
Drafted and reviewed by Frank Kingswood <frank@kingswood-consulting.co.uk>.
2008-10-13 17:31:03 +01:00
Patrick Mezard
f8f73e46ef Merge with crew-stable 2008-10-10 13:20:40 +02:00
Dirkjan Ochtman
a3c364ffd3 convert: fixed python2.3 incompatibility in bzr source (generator expression) 2008-10-02 15:48:57 +02:00
Patrick Mezard
c4a9b7abb7 convert: improve convert_source documentation 2008-09-29 09:30:36 +02:00
Marek Kubica
0f790a60a5 convert: add bzr source 2008-09-26 20:33:47 +02:00
Martin Geisler
4ca32a1fdf i18n, convert: mark command line options for translation 2008-09-06 17:43:59 +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
Dirkjan Ochtman
3e077a5422 strip trailing whitespace, replace tabs by spaces 2008-08-21 11:35:17 +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
Martin OConnor
8a6ec085df Bug:1201 hg convert on CVS working copy produces Traceback
Fix identified by frank@kingswood-consulting.co.uk

Changed usage fron os.environ["HOME"] to expanduser("~/.cvspass") as
this is the
 only usage of this construct in mercurial sources.
2008-06-25 19:41:43 +01:00
David Reiss
0588a663e9 convert.monotone: fix quotes and backslashes in change descriptions. 2008-05-16 00:48:23 -07:00
Dirkjan Ochtman
06d8e99e57 remove trailing spaces 2008-04-16 12:09:16 +02:00
Patrick Mezard
f7c7c06863 convert: fix svn file copy detection code 2008-04-14 22:31:34 +02:00
Patrick Mezard
9d916aae03 convert: fix svn branch source detection corner case
It was confused by composite-looking revisions made by copy + remove.
2008-04-14 22:31:34 +02:00
Patrick Mezard
b54ae05232 convert: cleanup svn file copy handling 2008-04-14 22:31:34 +02:00
Patrick Mezard
7914c93a87 convert: handle past or foreign partial svn copies
Subversion allows revisions to be composed of subparts coming from revisions
before the parent or from other part of the repository. There is no simple
representation for these now, keep the changes but do not track their origins.
2008-04-14 22:31:34 +02:00
Patrick Mezard
19cd4308ab convert: more cleanup in svn directory copy handling 2008-04-14 22:31:33 +02:00
Patrick Mezard
c06ff5b448 convert: svn directory copy handling cleanup 2008-04-14 22:31:33 +02:00
Patrick Mezard
a5bba7499c convert: improve subversion branch filtering 2008-04-14 22:31:33 +02:00
Patrick Mezard
a210321674 convert: rename get_entry_from_path() into an svn_source method 2008-04-14 22:31:33 +02:00
Patrick Mezard
8278052793 convert: fix subpaths detection in svn source 2008-04-14 22:31:33 +02:00
Thomas Arendsen Hein
657d20646f Fix spacing error introduced in d44685e2377e 2008-04-08 18:39:02 +02:00
Patrick Mezard
7d3027f767 convert: check svn branches are directories 2008-04-07 11:59:20 +02:00
Patrick Mezard
0eba22ee63 convert: implement startrev for hg source 2008-08-13 23:31:10 +02:00
Dirkjan Ochtman
6b51480caa merge with crew-stable 2008-08-12 17:47:08 +02:00
Thomas Arendsen Hein
b88ac9c741 merge with crew-stable 2008-08-08 18:49:55 +02:00
Patrick Mezard
a7fffbf6bb Merge with crew-stable 2008-07-30 22:33:40 +02:00
Patrick Mezard
88ac610380 Merge with crew-stable 2008-07-25 20:47:04 +02:00
Patrick Mezard
55906886eb Merge with crew-stable 2008-07-24 22:46:45 +02:00
Patrick Mezard
49cd301d4b Merge with crew-stable 2008-07-20 21:51:13 +02:00
Frank Kingswood
9871c3ea34 convert: add documentation for CVS source 2008-06-24 10:40:41 +01:00
Matt Mackall
a65ef7bc5d util: add sort helper 2008-06-27 18:28:45 -05:00
Matt Mackall
dcacfb3161 manifest: remove execf/linkf methods 2008-06-26 14:35:50 -05:00
Matt Mackall
fbb5127472 use repo[changeid] to get a changectx 2008-06-26 14:35:46 -05:00
Patrick Mezard
93bb017ccb convert: hg sink commits without working dir 2008-06-19 00:14:24 +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
Frank Kingswood
4e99be7f9e cvsps.py: remove unused Changeset member of logentry 2008-06-18 09:13:39 +01:00
Dirkjan Ochtman
08a17664d9 cvsps: fix a final whitespace nit 2008-06-18 11:09:18 +02:00
Frank Kingswood
6c0cfe8797 convert: cvs.py - Allow user to use built-in CVS changeset code.
tests: add two testcases for CVS conversion with builtin CVS
including a testcase for issue 1148.
2008-06-15 16:05:46 +01:00
Frank Kingswood
8625e041f1 convert: cvsps - User interface to CVS changeset code in cvsps.py 2008-06-15 15:59:53 +01:00
Matt Mackall
16a97c7d30 cvsps: fix up some whitespace 2008-06-17 12:10:19 -05:00
Frank Kingswood
9cb301831a convert: cvsps.py - code to generate changesets from a CVS repository 2008-06-15 15:59:27 +01:00
Dirkjan Ochtman
dc3b56ac83 convert comments to docstrings in a bunch of extensions 2008-06-12 11:33:47 +02:00
Patrick Mezard
664a12a36c convert: allow tags detection to be disabled
Tags calculation becomes more reliable but slower, measurable on frequent
synchronizations.
2008-03-29 17:16:18 +01:00
Patrick Mezard
686a0f8465 convert: follow svn tags history (issue953) 2008-03-29 17:15:45 +01:00
Patrick Mezard
f6b95792a5 convert: avoid svn log retrieval process cleanup
With huge history (like kdelibs), the process termination suddenly consumes a
lot of memory (from 700M to 1.3G+). Since the job is done, clean termination is
not required, just exit.
2008-03-29 17:14:53 +01:00
Patrick Mezard
d098a6938d convert: record deleted files in monotone source 2008-03-24 17:02:08 +01:00
Patrick Mezard
df0cbbb71a convert: allow missing tools not to stop source type detection 2008-03-20 23:32:43 +01:00
Eric Hopper
40e06fccb8 convert: Add convert.cvsps option to set up an alternate cvsps command line. 2008-03-17 12:41:14 -07:00
Mikkel Fahnøe Jørgensen
9cd04d5249 cleanup monotone conversion and use commandline class 2008-02-03 16:14:05 +01:00
Mikkel Fahnøe Jørgensen
c3353ce9f9 initial version of monotone source for convert extension 2008-02-02 19:14:59 +01:00
Patrick Mezard
f51cfe018c convert: avoid querying log of foreign svn branches
Server configuration may prevent access to other branches, so don't even try to
get them, instead of ignoring them afterwards.
2008-03-16 00:35:14 +01:00
Patrick Mezard
b31dc66c25 convert: rename MAPFILE into REVMAP to disambiguate with filemap 2008-03-12 23:21:01 +01:00
Joel Rosdahl
c26213193c Avoid importing mercurial.node/mercurial.repo stuff from mercurial.hg 2008-03-06 22:51:16 +01:00
Joel Rosdahl
bd755ed723 convert: Remove unused clone method 2008-03-06 22:23:41 +01:00
Joel Rosdahl
2cc739b2aa convert: Fix unbound name error in the subversion backend 2008-03-06 22:23:41 +01:00
Joel Rosdahl
4f8012378a Remove unused imports 2008-03-06 22:23:41 +01:00
Joel Rosdahl
5dae3059a0 Expand import * to allow Pyflakes to find problems 2008-03-06 22:23:26 +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
Patrick Mezard
1bee8eb741 convert: add shallow, single branch svn conversions via svn.startrev 2008-02-24 17:58:55 +01:00
Patrick Mezard
e6c6545487 convert: allow svn trunk/branches/tags detection to be skipped
- eluding convert.svn.branches defaults to "branches"
- convert.svn.branches= disables branches detection
- convert.svn.branches=/ is equivalent to former convert.svn.branches=
2008-02-24 17:58:53 +01:00
Patrick Mezard
613f127c0d convert: improve subversion source documentation 2008-02-23 16:43:33 +01: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
Alexis S. L. Carvalho
99a2d5f75c convert: use 'unknown' and '0 0' if commit author or date weren't specified
Closes issue873.
2008-02-03 21:03:46 -02:00
Patrick Mezard
fd2ee26173 convert: hg.clonebranches must pull missing parents (issue941) 2008-01-26 19:55:04 +01:00
Thomas Arendsen Hein
76157ccf47 CVS convert: Find correct parent for new branch (issue704)
Previously the parent was determined by the last changeset where the branched
file was changed even if the branch is based on an earlier revision.
Fix written by mpm.
2008-01-22 00:16:50 +01:00
Patrick Mezard
494df8c5f5 convert: mercurial sink must be local 2008-01-21 22:24:28 +01:00
Thomas Arendsen Hein
64125b8004 convert: Do not abort with TypeError if svn commit message is None (issue934) 2008-01-21 21:44:16 +01:00
Patrick Mezard
2e6086567e convert: enforce svn_source.getchanges() files unicity 2008-01-21 10:04:35 +01:00
Patrick Mezard
33d8300598 convert: fix invalid svn.ra.check_path() call (issue 771)
The svn transport must be reparented to repository root before using
check_path() with full entrypaths.
2008-01-19 14:39:30 +01:00
Patrick Mezard
8fdc85530f convert: filemap must call base converter before()/after() actions 2008-01-04 23:23:47 +01:00
Patrick Mezard
9760500b06 convert: move commands definition to ease demandload job (issue 860) 2007-12-09 15:25:36 +01:00
David J. Mellor
b1df375d09 convert: fix SVN date parser dropping the final whole second digit 2007-12-06 13:10:25 -08:00
Alexis S. L. Carvalho
8775f8f81c convert: make sure mercurial_source has a local hg repo 2007-11-09 20:21:35 -02:00
Alexis S. L. Carvalho
fe9d865e0d convert: display all errors if we couldn't open the source repo
This should give the user a better hint of what's going wrong.

Improve some error messages.  In particular, mention "CVS checkout" instead
of "CVS repo".

Fixes issue822 and issue826.
2007-11-09 20:21:35 -02:00
Alexis S. L. Carvalho
959d3f5cd4 test-convert-darcs: skip if we can't find the elementtree module
This patch is a bit dirty to avoid having to repeat the dance required
to import elementtree.
2007-11-09 20:21:35 -02:00
Benoit Boissinot
37290329f4 fix typo in convert help text, update test 2007-11-05 20:15:33 +01:00
Rafael Villar Burke ext:(%22)
163660fdbe Update convert help text
Add Mercurial as a source format, clarify that the include directive triggers the exclusion of all not explicitely included files/dirs and use MAPFILE instead of revmapfile in the text, following the short message convention.
2007-11-02 20:09:21 +01:00
Patrick Mezard
6aa1e21320 Fix Windows os.popen bug with interleaved stdout/stderr output
See python bug 1366 "popen spawned process may not write to stdout under windows" for more details.
2007-11-01 12:05:14 +01:00
Thomas Arendsen Hein
3d8e3d2b46 merge with main 2008-02-14 00:13:20 +01:00
Patrick Mezard
6b7a646271 convert: detect baz before tla
The former seems to handle repositories built by the latter, the opposite is not true.
2008-02-12 23:35:35 +01:00
Matt Mackall
11a373ad95 convert: try to be smarter about CVS branching
Better handles this case:

The output from cvsps -A -u --cvs-direct -q:
---------------------
PatchSet 1
Date: 2008/02/08 20:33:28
Author: fk
Branch: HEAD
Tag: (none)
Log:
initial

Members:
         file_one:INITIAL->1.1

---------------------
PatchSet 2
Date: 2008/02/08 20:33:32
Author: fk
Branch: branch_name
Ancestor branch: HEAD
Tag: (none)
Log:
new file on branch

Members:
         file_two:1.1->1.1.2.1
2008-02-11 16:16:05 -06:00
Aleix Conchillo Flaque
4b38213355 convert: added GNU Arch (tla) tests and related fixes 2008-02-12 11:35:06 +01:00
Aleix Conchillo Flaque
996e817ac1 convert: added gnu arch (baz) tests 2008-02-12 10:38:34 +01:00
Aleix Conchillo Flaque
dfd4ccf204 convert: support binary files, link to files (viceversa) in gnu arch 2008-02-09 17:36:42 +01:00
Thomas Arendsen Hein
8f69077cca convert: Don't decode unicode strings
This does not work with python2.3 and is probably not useful anyway with 2.4.
2008-02-09 13:13:46 +01:00
Thomas Arendsen Hein
46b0448de8 convert: Compatibility fixes for python2.3
set -> util.set
sort(reverse=True) -> sort(); reverse()
2008-02-09 13:08:02 +01:00
Aleix Conchillo Flaque
d3422706de convert: improve gnu arch source performance and other fixes
- Improve performance by reading 'replay' output instead of
  calling 'delta' command after 'replay'. This increases speed
  significantly.

- Some times 'replay' command might fail with conflicts (don't
  know why), a new get from that revision just fixes it. So,
  if something fails, get a fresh copy from that revision and
  try from there.
2008-02-08 13:56:29 +01:00