RFE: add a "baseline" commit feature to bzr fast-export
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://
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
Changed in bzr-fastimport: | |
status: | New → Fix Committed |
importance: | Undecided → Medium |
assignee: | nobody → Andy Grimm (agrimm) |
milestone: | none → 0.12.0 |
Changed in bzr-fastimport: | |
status: | Fix Committed → Fix Released |
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