[bfiles] Bug in bfremove/bfput

Tom Conerly tom at fogcreek.com
Fri Jun 25 15:06:41 CDT 2010


I believe I found a bug in bfiles. After a bfile is removed any previous
version of the bfile will not uploaded to the central store using bfput.

Example:
> hg init
> echo blah > foo
> hg bfadd foo
added 1 big file
> hg commit -m "add"
> hg bfremove foo
> hg commit -m "remove"
> hg bfput
no pending files to put in store

In bfremove the file is removed from the bfdirstate which is what bfput uses
to find files to upload to the central store. The file is still in
.hg/bfiles/committed. A possible fix is for bfput to upload everything in
.hg/bfiles/committed. The removed file will also not show up in bfstatus as
pending upload. It isn't clear to me whether or not bfstatus should list the
file, but the current documentation says that it should be listed.

I'm happy to fix this, but I'm not sure what the best way to fix it is.

Tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20100625/37daaf87/attachment.htm>


More information about the Mercurial-devel mailing list