On 25 Cze, 17:05, gernonimo <gernot.kling...@gmail.com> wrote:
> Hi,
> i want to use git on a large software project (~90000 svn commits with
> one revision ~1,5GB) - so checking out the whole repository is not
> possible. So what i tried was to checkout only one revision (head).
> This worked well for "trunk":
>
> git-svn inithttp://addressofsvn/trunk
> git-svn fetch -r HEAD
>
> but if i run the following on a branch, nothing happens (no output):
> git-svn inithttp://addressofsvn/branches/branchxyz
> git-svn fetch -r HEAD
>
> running "git-svn fetch"  (without -r HEAD) wants to checkout the whole
> repository (all revisions) - the output is the following:
> W: Ignoring error from SVN, path probably does not exist: (175007):
> HTTP Path Not Found: '/svn/fsc/!svn/bc/100/branches/x/x.y.z' path not
> found
> W: Do not be alarmed at the above message git-svn is just searching
> aggressively for old history.
> This may take a while on large repositories
> Found possible branch point: 'http://addressofsvn/branches/branchxyz'
> => 'http://addressofsvn/branches/branchxyz', 85590
> Initializing parent: git-...@85590
> W: Ignoring error from SVN, path probably does not exist: (175007):
> HTTP Path Not Found: '/svn/fsc/!svn/bc/101/branches/x/x.y.z' path not
> found
> W: Do not be alarmed at the above message git-svn is just searching
> aggressively for old history.
> This may take a while on large repositories
> Checked through r87580
> ...
>
> but as said before: checking out the whole repo with all revisions is
> not possible would take years ;) -- can somebody help me? why i'm not
> able to checkout the head of a branch?
>
> Thank you!
>
> Regards,
> Gernot

You can use nice script to do that task:
 * http://github.com/gma/git-me-up/tree/master

description from script page:

In a nutshell, this is what it does:

  - Clones the latest version of the source (by default skipping the
history
    for performance reasons) into a new local Git repository.

  - Recreates empty directories (that git chooses to ignore), but that
your
    app might need.

  - Converts any svn:ignore Subversion properties into entries in your
    .git/info/exclude file.

  - Checks for Rails plugins installed via svn:externals and clones
them into
    their own git repositories (located in a new directory called ./
plugins,
    relative to your working directory). Each external plugin is
symlinked
    into vendor/plugins. Git is then instructed to ignore them so that
it
    doesn't attempt to commit the symlink back into Subversion.

  - Creates a local working branch (called "work" by default; override
it by
    setting the BRANCH environement variable).


btw,  task:
  - Converts any svn:ignore Subversion properties into entries in your
    .git/info/exclude file.

can take a lot of time (svn pget at every one remote directory),
so I usualy skip this task
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-users@googlegroups.com
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to