| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Signed-off-by: Eric Wong <normalperson@yhbt.net>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
New commands:
graft-branches - The most interesting command of the bunch. It
detects branches in SVN via various techniques (currently
regexes and file copies). It can be later extended to handle
svk and other properties people may use to track merges in svk.
Basically, merge tracking is not standardized at all in the SVN
world, and git grafts are perfect for dealing with this
situation.
Existing branch support (via tree matches) is only handled at
fetch time.
The following tow were originally implemented as shell scripts
several months ago, but I just decided to streamline things a
bit and added them to the main script.
multi-init - supports git-svnimport-like command-line syntax for
importing repositories that are layed out as recommended by the
SVN folks. This is a bit more tolerant than the git-svnimport
command-line syntax and doesn't require the user to figure out
where the repository URL ends and where the repository path
begins.
multi-fetch - runs fetch on all known SVN branches we're
tracking. This will NOT discover new branches (unlike
git-svnimport), so multi-init will need to be re-run (it's
idempotent).
Consider these three to be auxilliary commands (like
show-ignore, and rebuild) so their behavior won't receive as
much testing or scrutiny as the core commands (fetch and
commit).
Signed-off-by: Eric Wong <normalperson@yhbt.net>
|
|
|
|
| |
Signed-off-by: Eric Wong <normalperson@yhbt.net>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This should help keep disk usage sane for large imports.
--repack takes an optional argument for the interval, it
defaults to 1000 if no argument is specified.
Arguments to --repack-flags are passed directly to git-repack.
No arguments are passed by default.
Idea stolen from git-cvsimport :)
Signed-off-by: Eric Wong <normalperson@yhbt.net>
|
|
|
|
|
|
|
|
| |
While we're at it, read_repo_config has been added and
expanded to handle case where command-line arguments are
optional to Getopt::Long
Signed-off-by: Eric Wong <normalperson@yhbt.net>
|
|
|
|
|
|
|
|
|
| |
Since GIT_SVN_ID usage is probably going to become more
widespread <evil grin>, we won't run the chance of somebody
having a GIT_SVN_ID name that conflicts with one of the default
directories that already exist in $GIT_DIR (branches/tags).
Signed-off-by: Eric Wong <normalperson@yhbt.net>
|
|
|
|
|
|
|
|
| |
Sometimes I don't feel like downloading an entire tree again when
I actually decide a branch is worth tracking, so some users can
get around it more easily with this.
Signed-off-by: Eric Wong <normalperson@yhbt.net>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
By breaking the pipe read once we've seen a commit twice.
This should make -B/--branch-all-ref faster and usable on a
frequent basis.
We use topological order now for calling git-rev-list, and any
commit we've seen before should imply that all parents have been
seen (at least I hope that's the case for --topo-order).
Signed-off-by: Eric Wong <normalperson@yhbt.net>
|
|
|
|
|
|
|
|
|
|
| |
This should make life easier for all those who type:
`git-rev-parse --symbolic --all | xargs -n1 echo -b`
every time they run git-svn fetch.
Signed-off-by: Eric Wong <normalperson@yhbt.net>
|
|
|
|
|
|
| |
The repo-config key is 'svn.copysimilarity'
Signed-off-by: Eric Wong <normalperson@yhbt.net>
|
|
|
|
|
|
|
|
|
| |
If new revisions are fetched, that implies we haven't merged,
acked, or nacked them yet, and attempting to write the tree
we're committing means we'd silently clobber the newly fetched
changes.
Signed-off-by: Eric Wong <normalperson@yhbt.net>
|
|
|
|
|
|
|
|
|
|
| |
svn forces UTF-8 for commit messages, and with LC_ALL set to 'C'
it is unable to determine encoding of the git commit message.
Now we'll just assume the user has set LC_* correctly for
the commit message they're using.
Signed-off-by: Eric Wong <normalperson@yhbt.net>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If we read the maximum size of our buffer into $buf, and the
last character is '\015', there's a chance that the character is
'\012', which means our regex won't work correctly. At the
worst case, this could introduce an extra newline into the code.
We'll now read an extra character if we see '\015' is the last
character in $buf.
We also forgot to recalculate the length of $buf after doing the
newline substitution, causing some files to appeare truncated.
We'll do that now and force byte semantics in length() for good
measure.
Signed-off-by: Eric Wong <normalperson@yhbt.net>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
svn has trouble parsing files with embedded '@' characters. For
example,
svn propget svn:keywords foo@bar.c
svn: Syntax error parsing revision 'bar.c'
I asked about this on #svn and the workaround suggested was to append
an explicit revision specifier:
svn propget svn:keywords foo@bar.c@BASE
This patch appends '@BASE' to the filename in all calls to 'svn
propget'.
Patch originally by Seth Falcon <sethfalcon@gmail.com>
Seth: signoff?
[ew: Made to work with older svn that don't support peg revisions]
Signed-off-by: Eric Wong <normalperson@yhbt.net>
|
|
|
|
|
|
|
| |
Some changes to the latest git.git made this test croak. So
we'll always just force everything when using a new branch.
Signed-off-by: Eric Wong <normalperson@yhbt.net>
|
|
|
|
| |
Signed-off-by: Junio C Hamano <junkio@cox.net>
|
|\ |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
The subroutine did not check the case where HEAD does not verify.
Patch from Junio C Hamano <junkio@cox.net>
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
Thanks to Jon Nelson for the patch.
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
|
| | |
|
| |
| |
| |
| |
| |
| | |
Thanks to Kir Kolyshkin for pointing it out.
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
|
| | |
|
| |
| |
| |
| | |
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
|
| |
| |
| |
| | |
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
|
| | |
|
| |
| |
| |
| | |
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
|
| | |
|
| |
| |
| |
| | |
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
|
| | |
|
| |
| |
| |
| | |
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
|
| | |
|
| |
| |
| |
| | |
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
|
| | |
|
| |
| |
| |
| | |
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
|
| | |
|
| | |
|
| |
| |
| |
| | |
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
It contains Märchen. (\xc3a4)
|