Jelmer Vernooij [Tue, 11 Mar 2014 11:37:52 +0000 (11:37 +0000)]
Merge branch 'commit-copy' of git://github.com/masklinn/python-fastimport
masklinn [Tue, 11 Mar 2014 09:50:08 +0000 (10:50 +0100)]
Add tests for notemodify
masklinn [Tue, 11 Mar 2014 09:16:30 +0000 (10:16 +0100)]
Test copy-with-replacement and invalid copy
Styllistic fixes, ensure compatibility with pre-2.7 unittest
masklinn [Tue, 11 Mar 2014 09:09:07 +0000 (10:09 +0100)]
Add basic commit copy test
* don't assume file_iter is a list (though the parser sets one)
* don't copy inferred name attribute
masklinn [Mon, 10 Mar 2014 15:14:50 +0000 (16:14 +0100)]
Add copy method to CommitCommand
Allows easily creating a modified version of an existing commit without having
to modify the existing object in-place
masklinn [Mon, 10 Mar 2014 15:00:23 +0000 (16:00 +0100)]
Add NoteModify command
No parsing support, but can at least be used to generate a note and attach it
to a commit.
Jonathan Nieder [Sat, 1 Mar 2014 22:35:43 +0000 (22:35 +0000)]
python-fastimport: overview documentation
Add some docstrings to help new readers to get started.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Jelmer Vernooij [Sat, 1 Mar 2014 15:36:16 +0000 (15:36 +0000)]
Start on 0.9.4.
Jelmer Vernooij [Sat, 1 Mar 2014 15:32:52 +0000 (15:32 +0000)]
Release 0.9.3.
Jelmer Vernooij [Sat, 1 Mar 2014 15:32:23 +0000 (15:32 +0000)]
Add basic readme file.
Jelmer Vernooij [Sat, 1 Mar 2014 15:29:25 +0000 (15:29 +0000)]
Add MANIFEST file.
Jelmer Vernooij [Sat, 1 Mar 2014 15:27:57 +0000 (15:27 +0000)]
Remove binary_stream helper.
Jelmer Vernooij [Sat, 1 Mar 2014 15:26:01 +0000 (15:26 +0000)]
Remove unused helpers.
Jelmer Vernooij [Sat, 18 Jan 2014 19:28:13 +0000 (19:28 +0000)]
Fix compatibility with python2.6, which does not have assertIsInstance.
Jelmer Vernooij [Sat, 18 Jan 2014 19:25:16 +0000 (19:25 +0000)]
Actually run tests with unittest2.
Jelmer Vernooij [Sat, 18 Jan 2014 19:21:57 +0000 (19:21 +0000)]
Build with pypy in travis.
Jelmer Vernooij [Sat, 18 Jan 2014 19:21:30 +0000 (19:21 +0000)]
Install unittest2 for python2.6.
Jelmer Vernooij [Sat, 18 Jan 2014 18:56:58 +0000 (18:56 +0000)]
Remove dependency on testtools.
Jelmer Vernooij [Sat, 18 Jan 2014 18:50:07 +0000 (18:50 +0000)]
Add travis config.
Jelmer Vernooij [Sun, 22 Sep 2013 21:50:42 +0000 (22:50 +0100)]
Add Makefile.
Jelmer Vernooij [Sun, 22 Sep 2013 21:50:33 +0000 (22:50 +0100)]
Remove download URL.
Jelmer Vernooij [Sun, 22 Sep 2013 21:50:31 +0000 (22:50 +0100)]
Ignore some files.
Jelmer Vernooij [Thu, 29 Nov 2012 13:10:30 +0000 (14:10 +0100)]
Change fileid of processors/
Jelmer Vernooij [Wed, 4 Apr 2012 00:48:11 +0000 (02:48 +0200)]
Start on 0.9.3.
Jelmer Vernooij [Wed, 4 Apr 2012 00:45:47 +0000 (02:45 +0200)]
Release 0.9.2.
Jelmer Vernooij [Wed, 4 Apr 2012 00:44:30 +0000 (02:44 +0200)]
Allow less strict parsing of fastimport streams.
Jelmer Vernooij [Wed, 4 Apr 2012 00:05:37 +0000 (02:05 +0200)]
Cope with invalid timezones like +51800 a little bit better.
Jelmer Vernooij [Tue, 3 Apr 2012 23:59:52 +0000 (01:59 +0200)]
Add basic tests for dates.
Jelmer Vernooij [Tue, 28 Feb 2012 14:00:04 +0000 (15:00 +0100)]
remove info_processor too (uses reftracker).
Jelmer Vernooij [Tue, 28 Feb 2012 13:52:38 +0000 (14:52 +0100)]
Remove bzr-specific reftracker and idmapfile modules.
Jelmer Vernooij [Tue, 28 Feb 2012 12:23:07 +0000 (13:23 +0100)]
Clarify AUTHORS.
Jelmer Vernooij [Tue, 28 Feb 2012 11:55:10 +0000 (12:55 +0100)]
Start on 0.9.2.
Jelmer Vernooij [Tue, 28 Feb 2012 11:52:53 +0000 (12:52 +0100)]
Release 0.9.1.
Jelmer Vernooij [Tue, 28 Feb 2012 11:52:28 +0000 (12:52 +0100)]
Rename tarball for the benefit of pip.
Jelmer Vernooij [Tue, 28 Feb 2012 11:49:37 +0000 (12:49 +0100)]
Implement 'done' feature.
Jelmer Vernooij [Sat, 22 Oct 2011 21:47:22 +0000 (14:47 -0700)]
Merge support for squash_empty_commit argument to FilterProcessor.
Jelmer Vernooij [Sat, 22 Oct 2011 21:39:03 +0000 (14:39 -0700)]
Only fix references to commits that have been squashed rather than removing everything that we haven't touched yet
Oleksandr Usov [Fri, 21 Oct 2011 09:35:03 +0000 (10:35 +0100)]
Rename flag to squash_empty_commits and add few more tests with includes/excludes
Oleksandr Usov [Thu, 20 Oct 2011 18:14:27 +0000 (19:14 +0100)]
Add preserve_all_history flag to filter_processor and tests for it
Jelmer Vernooij [Thu, 6 Oct 2011 00:24:50 +0000 (02:24 +0200)]
Remove old FSF address and point at FSF website instead.
Thanks Dan Callaghan.
Jelmer Vernooij [Mon, 31 Jan 2011 00:44:49 +0000 (01:44 +0100)]
Start on 0.9.1.
Jelmer Vernooij [Mon, 31 Jan 2011 00:40:02 +0000 (01:40 +0100)]
release 0.9.0
Jonathan Nieder [Sun, 30 Jan 2011 09:41:28 +0000 (10:41 +0100)]
Fix typo in setup.py
Jelmer Vernooij [Sun, 12 Dec 2010 03:52:43 +0000 (04:52 +0100)]
Avoid attempting to utf-8 decode/encode committer and author information.
Jelmer Vernooij [Sun, 12 Dec 2010 03:41:09 +0000 (04:41 +0100)]
Check for leading slashes in paths, invalid path types.
Jelmer Vernooij [Sun, 12 Dec 2010 03:39:24 +0000 (04:39 +0100)]
Stop utf-8 decoding several strings as they are not guaranteed to be unicode.
Jelmer Vernooij [Sat, 11 Dec 2010 19:11:53 +0000 (20:11 +0100)]
If there is no mark then don't track it.
Jelmer Vernooij [Mon, 8 Nov 2010 09:59:33 +0000 (10:59 +0100)]
Avoid file_iter, use iter_files instead.
file_iter should ideally be made private.
Jelmer Vernooij [Sat, 6 Nov 2010 17:06:28 +0000 (18:06 +0100)]
Fix tests.
Jelmer Vernooij [Thu, 28 Oct 2010 18:22:16 +0000 (11:22 -0700)]
Support out of band processing of commands.
Jelmer Vernooij [Sat, 16 Oct 2010 19:00:07 +0000 (21:00 +0200)]
Cope with FileModifyCommand now having mode rather than is_executable and kind.
Jelmer Vernooij [Sat, 16 Oct 2010 18:53:47 +0000 (20:53 +0200)]
Install fastimport.processors.
Jelmer Vernooij [Sun, 12 Sep 2010 00:46:46 +0000 (02:46 +0200)]
remove dependency on bzrlib.
Jelmer Vernooij [Sun, 12 Sep 2010 00:39:11 +0000 (02:39 +0200)]
Don't rely on bzrlib.trace.
Jelmer Vernooij [Sat, 11 Sep 2010 22:34:22 +0000 (00:34 +0200)]
Use modes directly rather than bzr file kinds and executable flags.
Jelmer Vernooij [Sun, 5 Sep 2010 23:41:23 +0000 (01:41 +0200)]
Import processors from bzr-fastimport.
Jelmer Vernooij [Sun, 5 Sep 2010 23:16:15 +0000 (01:16 +0200)]
Split out reftracker.
Jelmer Vernooij [Sun, 5 Sep 2010 21:42:04 +0000 (23:42 +0200)]
Fix typo, handle bzr-specific locking in GenericProcessor.
Jelmer Vernooij [Sun, 5 Sep 2010 21:30:48 +0000 (23:30 +0200)]
remove bzrisms from Processor.
Jelmer Vernooij [Sat, 4 Sep 2010 21:59:19 +0000 (23:59 +0200)]
Remove bzr-specific bits from processor.
Jelmer Vernooij [Sat, 4 Sep 2010 21:59:08 +0000 (23:59 +0200)]
Only require passing BzrDir to bzr-specific processors.
Jelmer Vernooij [Sat, 4 Sep 2010 21:53:47 +0000 (23:53 +0200)]
Ignore testrepository directories.
Sverre Rabbelier [Sat, 4 Sep 2010 21:50:57 +0000 (23:50 +0200)]
Support the 'done' command.
Jelmer Vernooij [Sat, 4 Sep 2010 17:46:30 +0000 (19:46 +0200)]
Fix some imports.
Jelmer Vernooij [Sat, 4 Sep 2010 14:33:18 +0000 (16:33 +0200)]
Add testrepository configuration, test_suite() function.
Jelmer Vernooij [Sat, 4 Sep 2010 14:07:12 +0000 (16:07 +0200)]
Remove bzr-specific code, whitespace.
Jelmer Vernooij [Fri, 3 Sep 2010 21:51:42 +0000 (23:51 +0200)]
Split out fastimport, import it from the system.
Jelmer Vernooij [Fri, 3 Sep 2010 21:28:11 +0000 (23:28 +0200)]
Split python-fastimport into its own separate package.
Jelmer Vernooij [Fri, 3 Sep 2010 21:09:05 +0000 (23:09 +0200)]
Move pure-fastimport code into its own directory, in preparation of splitting it into a separate package.
Jelmer Vernooij [Tue, 27 Jul 2010 23:55:20 +0000 (01:55 +0200)]
Merge fixes from Miklos for darcs fast import.
Miklos Vajna [Sun, 27 Jun 2010 23:21:13 +0000 (01:21 +0200)]
darcs-fast-import: don't fail for first empty commit
Miklos Vajna [Sun, 27 Jun 2010 21:28:23 +0000 (23:28 +0200)]
darcs-fast-import: add --progress switch
Miklos Vajna [Sun, 27 Jun 2010 21:11:37 +0000 (23:11 +0200)]
x2d: pass options to d-f-i
Miklos Vajna [Sun, 27 Jun 2010 21:03:53 +0000 (23:03 +0200)]
darcs-fast-import: Create symlinks after darcs record
Otherwise darcs diff will show the file removals but even darcs record
-a won't record them.
Miklos Vajna [Sun, 27 Jun 2010 18:40:01 +0000 (20:40 +0200)]
darcs-fast-import: Allow more liberal renaming
Allow renames like BUG -> bug. Darcs does not allow it by default.
Miklos Vajna [Sun, 27 Jun 2010 17:37:50 +0000 (19:37 +0200)]
darcs-fast-import: add --symhack option
Miklos Vajna [Sun, 27 Jun 2010 17:02:07 +0000 (19:02 +0200)]
darcs-fast-import: always invoke darcs add using --boring
Miklos Vajna [Sun, 27 Jun 2010 17:00:08 +0000 (19:00 +0200)]
darcs-fast-import: do not silently ignore darcs failures
Miklos Vajna [Sun, 27 Jun 2010 16:51:11 +0000 (18:51 +0200)]
darcs-fast-import: better error handling for symlinks
The importer can't handle them till Darcs does not so, but at least we
can give an easy-to-understand error message and a separate exit code.
Miklos Vajna [Sun, 27 Jun 2010 15:59:55 +0000 (17:59 +0200)]
darcs-fast-import: No longer throw away the blob after writing it
It turns out that a mark can be used multiple times, and given that
reading it from darcs may be slow, let's just keep it in the memory for
now.
Later - if it turns out the memory usage is too heavy - we can still use
darcs show contents instead.
Anders Kaseorg [Wed, 21 Apr 2010 21:23:07 +0000 (23:23 +0200)]
git-darcs: Fix exit/return confusion.
Shell functions should return instead of exiting the whole script;
they should return a nonzero status on error and a zero status on
success. Notably, “Nothing fetched” is not an error, and pull should
go ahead and do a merge or rebase even if fetch didn’t fetch anything.
Anders Kaseorg [Wed, 21 Apr 2010 21:23:07 +0000 (23:23 +0200)]
git-darcs: Import to a real ref (refs/remotes/darcs/$remote).
This allows the imported darcs branch to be seen by tools like ‘git
branch -r’ and ‘gitk --all’, and prevents the imported commits from
being garbage-collected.
D Herring [Wed, 21 Apr 2010 21:23:07 +0000 (23:23 +0200)]
fix timezones in darcs-fast-export, take 2
The previous patch had a flaw; it assumed that darcs was storing the committer's timezone.
Instead, darcs always stores UTC timestamps in an ISO 8601 format.
Tools like "darcs changes" convert this into the user's local time as a convenience.
I couldn't find an authoritative spec, but here are some relevant references.
http://wiki.darcs.net/NamedPatch
http://search.cpan.org/~david/Darcs-Inventory-1.4/lib/Darcs/Inventory/Patch.pm
http://bugs.darcs.net/issue140
To resolve the issue, this patch always reports that the timezone is UTC.
Ian Clatworthy [Wed, 17 Mar 2010 01:33:49 +0000 (11:33 +1000)]
Merge patches from Miklos for darcs-fast-export
D Herring [Wed, 17 Mar 2010 00:14:48 +0000 (01:14 +0100)]
fix timezones in darcs-fast-export
Previously, the export was mangling timezones. There were conversion errors when the darcs TZ
did not match the conversion TZ. Also, the conversion timezone was always reported (this is
bad since two conversions may now differ).
This patch fixes both problems on my system, but it has not been extensively tested.
Can 'local_date' be used reliably? What about my TZ manipulations?
I am no expert in darcs or python. Developed with darcs 2.3.1 and Python 2.6.4.
To check for errors, I compared a darcs repo against a "git darcs fetch" into a new repo.
The following two commands were helpful.
# darcs changes | grep for dates
# git log --pretty=format:%ad REF | cat
Example -- EDT=UTC-4 and EST=UTC-5; I am processing in EDT.
darcs date:
"Fri Mar 31 10:48:00 EST 2006"
Before patch, git reported:
"Fri Mar 31 12:48:00 2006 -0400" (should be 11:48 -0400 or 10:48 -0500)
After patch, git reported:
"Fri Mar 31 10:48:00 2006 -0500"
Miklos Vajna [Wed, 17 Mar 2010 00:09:30 +0000 (01:09 +0100)]
git-darcs: add a see-also section to manpage
Miklos Vajna [Wed, 17 Mar 2010 00:09:30 +0000 (01:09 +0100)]
git-darcs: add support for {pre,post}-{fetch,push} hooks
Miklos Vajna [Wed, 17 Mar 2010 00:09:30 +0000 (01:09 +0100)]
git-darcs: don't add empty darcs-fast-export-options config entry
Ian Clatworthy [Sat, 27 Feb 2010 14:47:56 +0000 (00:47 +1000)]
Release 0.9
Ian Clatworthy [Fri, 12 Feb 2010 20:42:47 +0000 (06:42 +1000)]
Don't bail for http://path/to/repo darcs remotes
Justin Bogner [Thu, 11 Feb 2010 09:11:22 +0000 (10:11 +0100)]
Don't bail for http://path/to/repo darcs remotes
Ian Clatworthy [Tue, 9 Feb 2010 00:05:42 +0000 (10:05 +1000)]
Fallback to system configobj if none in bzrib.util
Jelmer Vernooij [Mon, 8 Feb 2010 13:26:12 +0000 (14:26 +0100)]
Cope with Debian's bzr using the system configobj, not shipping with its own.
Ian Clatworthy [Sun, 31 Jan 2010 06:42:32 +0000 (16:42 +1000)]
Add explorer integration
Ian Clatworthy [Thu, 28 Jan 2010 06:00:31 +0000 (16:00 +1000)]
Ignore progress messages unless in verbose mode
Ian Clatworthy [Thu, 28 Jan 2010 05:27:08 +0000 (15:27 +1000)]
Fix Monotone prefix and command name: mnt -> mtn
Ian Clatworthy [Mon, 25 Jan 2010 01:59:10 +0000 (11:59 +1000)]
Merge Python 2.5 fix for darcs-fast-export
Miklos Vajna [Sun, 24 Jan 2010 23:45:31 +0000 (00:45 +0100)]
darcs-fast-export: don't use urllib.urlopen().getcode()
As it's missing from python2.5.
John Arbash Meinel [Tue, 5 Jan 2010 07:24:14 +0000 (01:24 -0600)]
Include the known_graph code.
John Arbash Meinel [Fri, 11 Dec 2009 14:55:04 +0000 (08:55 -0600)]
Switch to using CommitBuilder
Rather than holding most of the logic ourselves.