I just got the latest mercurial and started adding in largefiles.
However, now I can’t push changes:
abort: ssh://hg@bitbucket.org/mysite/bitbucket.org does not appear to be a largefile store
How can I push to bitbucket now? I have multiple commits that include both largefiles and regular code commits. I’m OK with just forgeting all the largefiles I’ve added, but how can I do that without reverting all of my real commits?
As mentioned in an answer to this question, you can use the convert extension to create a new repository. Use
--filemapto exclude the large files you don’t want. This might be a problem if you have already pushed (other files) to bitbucket. Luckily, there is another answer to the same question which discusses editing history and has a recipe to remove a file from history. Since I’m assuming that you haven’t pushed the large file anywhere you should be okay.