RFE: add a "baseline" commit feature to bzr fast-export

Bug #893382 reported by Andy Grimm
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar Fast Import
Fix Released
Medium
Andy Grimm

Bug Description

When exporting from a repository, it would be useful to be able to truncate the commit history. There are many reasons for this:

* sensitive data somewhere in the history -- sometimes import filtering can take care of this, but that can be very tricky
* working around bugs in fastimport that cause it to blow up on certain commits
etc.

I've created a patch and uploaded a branch to launchpad here:
http://bazaar.launchpad.net/~agrimm/bzr-fastimport/baseline-commit/revision/340

It may still need work, but in my testing, it accomplished my goal. Example usage:

bzr fast-export -r 2335..-1 myproject > myproject.fi
bzr fast-import myproject.fi myproject2

The result is that myproject2 contains the exact same data as myproject at the latest revision, but the commit history only goes back to revision 2335.

I'm rather new to working with launchpad, so my apologies if I haven't followed the process quite properly.

Related branches

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

Hi Andy,

Thanks for working on this.

Can you please propose merging your branch into the bzr-fastimport mainline?

There should be a "Propose a merge" link on this page: https://code.launchpad.net/~agrimm/bzr-fastimport/baseline-commit

That should also make it a bit more convenient for me to review your changes.

Cheers,

Jelmer

Jelmer Vernooij (jelmer)
Changed in bzr-fastimport:
status: New → Fix Committed
importance: Undecided → Medium
assignee: nobody → Andy Grimm (agrimm)
milestone: none → 0.12.0
Jelmer Vernooij (jelmer)
Changed in bzr-fastimport:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.