2

We have a very large team and use a lot of kbfiles. We have discovered that when using kbfiles, in a certain situation a rebase will incorrectly overwrite a kbfile with an older version. The repro is as follows:

  1. Create a new repository and add some files in your initial clone (we'll call this Clone 1). Add the first version of a kbfile. Push the changes.
  2. At this point, make a new clone of the remote repository (we'll call this Clone 2).
  3. Go back to Clone 1 and add a second version of the same kbfile (and edit one or two other files for good measure). Push the changes.
  4. Go back to Clone 2, and make some local changes (but do not push them!).
  5. From inside Clone 2, execute hg pull --rebase. Make one more file edit and commit (the commit at this point is very important). Push.

You will see when you look at the history in Kiln, that the kbfile has been overwritten with the one that was in Clone 2's working copy (rather than Clone 2's working copy being correctly updated by the rebase with the new kbfile that came from Clone 1). I suspect this is a bug in the kbfiles extension.

This is with the On-Your-Server version of Kiln: 2.3.29.0. However, we have a custom build of the kiln extensions because we needed it to fix a huge problem with merging repositories with kbfiles, so our extensions are newer than the version that shipped with the 2.3.29.0 version of Kiln.

Fog Creek Case FC2046366

flag

2 Answers

1

Hey Na'Tosha! I've filed a bug for this issue and it will be fixed in an upcoming release.

link|flag
1

FYI, I have made a patch for this bug and submitted it to FogCreek (I can't put it here because there is no real way to upload such things)

link|flag
Na'Tosha, is there any way you can pastbin or dropbox-public your modified kbfiles. I'm having issues with merge and rebase and it sounds like you've made progress on these. I didn't realize kbfiles was really ALPHA level extension! This should have been made more clear. Now my production repository has considerable issues and I don't know if I can trust the versions of files in there. – Gabe Jun 14 2011 at 20:15
Well, by this point my modified files have a lot more fixes than just this one, but I'm happy to share them with you. The easiest thing would be to PM me on IRC (my nick is "natosha") or email me at: natosha at gmail dot com and I will provide you with a download link. – Na'Tosha Bard Jun 15 2011 at 16:11

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.