5

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?

keflavich
  • 18,278
  • 20
  • 86
  • 118
  • Have you followed the [wiki](http://mercurial.selenic.com/wiki/LargefilesExtension)? – César Jan 24 '12 at 21:04
  • 1
    Yes. Unfortunately, it looks like largefiles is not enabled on bitbucket. http://groups.google.com/group/bitbucket-users/browse_thread/thread/58e54f1a9cf1a705. – keflavich Jan 24 '12 at 21:28

1 Answers1

5

As mentioned in an answer to this question, you can use the convert extension to create a new repository. Use --filemap to 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.

Community
  • 1
  • 1
Ivan Andrus
  • 5,221
  • 24
  • 31
  • Well, that's certainly the solution I was looking for. Unfortunately, I get this error: `abort: No such file or directory: /my/large/file` during the conversion step for the commit in which I had added the large files. Is this a bug in one of the mercurial extensions? – keflavich Jan 25 '12 at 15:16
  • Sounds like there is a bug with how the convert and large file extensions interact. Perhaps the editing history recipe will work. – Ivan Andrus Jan 25 '12 at 20:05