Commit Graph

415 Commits

Author SHA1 Message Date
Patrick Mezard
62eea60737 convert/bzr: fix symlink handling (issue1626) 2009-04-24 10:34:11 +02:00
Patrick Mezard
75233223fe convert/bzr: handle files replaced by directories (issue1623) 2009-04-23 15:07:05 +02:00
Paul Aurich
e41f434c50 convert/mtn: mtn does not record timezones, mark dates as UTC (issue1624) 2009-04-23 08:45:44 +02:00
Patrick Mezard
f7e8a4c038 convert/mtn: handle directory move into moved directory (issue1619/3) 2009-04-22 10:25:05 +02:00
Patrick Mezard
6bbead8918 convert/mtn: handle files moved in a moved directory (issue1619/2) 2009-04-21 22:31:16 +02:00
Paul Aurich
477feb0ff9 convert/mtn: handle subsecond commit dates (issue1616) 2009-04-21 15:57:15 +02:00
Patrick Mezard
551e0cf361 convert/mtn: handle new files in moved directories (issue1619)
Reported and investigated by Paul Aurich <paul@darkrain42.org>
2009-04-21 14:17:29 +02:00
Patrick Mezard
b3f0d7b5b8 convert/p4: win32 fixes
* cmd.exe does not know single quotes
* win32 does not like trailing whitespace very much. Trade test coverage for
  maintenance time and drop the trailing whitespaces tests.
2009-04-13 16:15:45 +02:00
Patrick Mezard
0dbcb77e35 convert/mtn: record changes from directory renames (issue1587)
Bug report and initial path by Pavel Volkovitskiy <int@mtx.ru>
2009-04-11 23:12:42 +02:00
Patrick Mezard
2ae17cf19b convert/bzr: fix file rename replaced by a dir case (issue1583)
We were not checking entry types, and getting file content was working with
directories instead of raising IOError.
2009-04-11 20:18:51 +02:00
Xavier ALT
82ecb55fcf convert: remove renamed source files (issue1505) 2009-04-08 22:59:02 +02: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
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