This repostory contains a script to merge the history for the facebook protocol plugin from the pidgin 3 mercurial branch into the standalone purple-facebook repository that exists on github.
This script was used to create a pull request that finally got all of the history into a single repository and removed the need for applying patches as part of the build.
This script, make-it-simple has only been tested under bash on Debian Linux.
It expects to have a full clone of the
keep.imfreedom.org/pidgin/pidgin
mercurial repository in a directory named ./source.hg. It also expects to have
a ramdisk mounted at ./t where all of the repository conversion happens.
It will run hg convert to extract out all of the facebook related commits
according to ./filemap and re-root them to a pidgin/ directory.
Once that conversion is done, hg-git is used to clone that newly filtered
mercurial repository to a fresh git repository.
Next the filtered git repository is merged into the source repository github.com/dequis/purple-facebook, Followed by applying all of the existing patches.
After that the tree should be buildable, but autogen.sh needs to be updated
to not call update.sh as all of that code is now in the same repository
meaning the entire update.sh process is no longer necessary.