Skip to content

Resuming import deletes commits made to git repository not from the import itself #69

Open
@jruark-logility

Description

@jruark-logility

I am trying to export a Subversion repository that contains multiple releases of a product into a new git repository. Along the way I am also export code from a different system (Serena PVCS) by hand into this same repository. My goal has been to do the following:

  • Use svn2git to export revisions 1-1000 (for example) into the new git repostory, which loads "release 1" of our product into git.
  • Manually commit the code for "release 1" of our other product from PVCS into git.
  • Use svn2git to export revisions 1001-2000 into the repository, which loads "release 2" of our product into git.
  • Manually commit the code for "release 2" from PVCS.

I do the manual commits by cloning the bare repository svn2git created into a new folder. I check out master, add all my code from PVCS, commit, and push back into the bare repository.

However, when I run svn2git the second time to load the next batch of revisions, it actually completely wipes out my manual commits in the bare repository, as if they had never existed. They don't show up in the git log within the bare repository. When I "git pull" in my local copy I created for adding the code from PVCS, it reports divergence of the remote branch and does a commit for a merge.

Each time I run svn2git it seems to wipe out my commits that didn't come from subversion.

Am I doing the process incorrectly, or is this just not possible, to run svn2git into what is essentially an existing repository that has code from other commits?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions