Re: Problem with 'rbt diff' and empty files in RBTools 0.6.2
I spoke too soon! Another user has reported the same problem and asked me how to "get rid of the garbage files". I'll file a bug report and debug this next week. -- Bruce On Mon, Aug 25, 2014 at 10:14 PM, Bruce Cran wrote: > Sorry, I never got around to debugging this and haven't had any more > reports of problems from users, so I think we can ignore it for now and > investigate further if other people bump into it. > > -- > Bruce > > > > On Tue, Jul 22, 2014 at 6:29 PM, Bruce Cran wrote: > >> From debugging earlier today, added_empty_files and deleted_empty_files >> were both the same, and contained the list of empty files that were already >> in the repository. >> base_files and tip_files looked correct - I'll go back and do some more >> debugging tomorrow. >> >> -- >> Bruce >> >> >> >> On Tue, Jul 22, 2014 at 5:53 PM, Anselina Chia >> wrote: >> >>> Hm, I just tried it with several non-empty added files and modified >>> files, but things seem fine here. Can you maybe add some debug statements >>> to verify if the files in the sets base_files, tip_files, tip_empty_files, >>> base_empty_files, added_empty_files, and deleted_empty_files are as >>> expected? >>> >>> -- Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/ --- Sign up for Review Board hosting at RBCommons: https://rbcommons.com/ --- Happy user? Let us know at http://www.reviewboard.org/users/ --- You received this message because you are subscribed to the Google Groups "reviewboard" group. To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Problem with 'rbt diff' and empty files in RBTools 0.6.2
Sorry, I never got around to debugging this and haven't had any more reports of problems from users, so I think we can ignore it for now and investigate further if other people bump into it. -- Bruce On Tue, Jul 22, 2014 at 6:29 PM, Bruce Cran wrote: > From debugging earlier today, added_empty_files and deleted_empty_files > were both the same, and contained the list of empty files that were already > in the repository. > base_files and tip_files looked correct - I'll go back and do some more > debugging tomorrow. > > -- > Bruce > > > > On Tue, Jul 22, 2014 at 5:53 PM, Anselina Chia > wrote: > >> Hm, I just tried it with several non-empty added files and modified >> files, but things seem fine here. Can you maybe add some debug statements >> to verify if the files in the sets base_files, tip_files, tip_empty_files, >> base_empty_files, added_empty_files, and deleted_empty_files are as >> expected? >> >> -- Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/ --- Sign up for Review Board hosting at RBCommons: https://rbcommons.com/ --- Happy user? Let us know at http://www.reviewboard.org/users/ --- You received this message because you are subscribed to the Google Groups "reviewboard" group. To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Problem with 'rbt diff' and empty files in RBTools 0.6.2
>From debugging earlier today, added_empty_files and deleted_empty_files were both the same, and contained the list of empty files that were already in the repository. base_files and tip_files looked correct - I'll go back and do some more debugging tomorrow. -- Bruce On Tue, Jul 22, 2014 at 5:53 PM, Anselina Chia wrote: > Hm, I just tried it with several non-empty added files and modified files, > but things seem fine here. Can you maybe add some debug statements to > verify if the files in the sets base_files, tip_files, tip_empty_files, > base_empty_files, added_empty_files, and deleted_empty_files are as > expected? > > -- Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/ --- Sign up for Review Board hosting at RBCommons: https://rbcommons.com/ --- Happy user? Let us know at http://www.reviewboard.org/users/ --- You received this message because you are subscribed to the Google Groups "reviewboard" group. To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Problem with 'rbt diff' and empty files in RBTools 0.6.2
Hm, I just tried it with several non-empty added files and modified files, but things seem fine here. Can you maybe add some debug statements to verify if the files in the sets base_files, tip_files, tip_empty_files, base_empty_files, added_empty_files, and deleted_empty_files are as expected? On Jul 22, 2014, at 7:33 PM, Bruce Cran wrote: > There were some non-empty added files, along with modifications; I just ran > 'rbt post -o' to create the review - it used the branch, server and > repository from the .reviewboardrc file. > > -- > Bruce > > > On Tue, Jul 22, 2014 at 5:25 PM, Anselina Chia > wrote: > > Can you give more details on how to reproduce this? (E.g., What rbt diff > options did you pass, if any? Were there only modified files or were there > also added/deleted files?) > > -- > Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/ > --- > Sign up for Review Board hosting at RBCommons: https://rbcommons.com/ > --- > Happy user? Let us know at http://www.reviewboard.org/users/ > --- > You received this message because you are subscribed to a topic in the Google > Groups "reviewboard" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/reviewboard/RhTej0Tc3vU/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > reviewboard+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/ --- Sign up for Review Board hosting at RBCommons: https://rbcommons.com/ --- Happy user? Let us know at http://www.reviewboard.org/users/ --- You received this message because you are subscribed to the Google Groups "reviewboard" group. To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Problem with 'rbt diff' and empty files in RBTools 0.6.2
There were some non-empty added files, along with modifications; I just ran 'rbt post -o' to create the review - it used the branch, server and repository from the .reviewboardrc file. -- Bruce On Tue, Jul 22, 2014 at 5:25 PM, Anselina Chia wrote: Can you give more details on how to reproduce this? (E.g., What rbt diff > options did you pass, if any? Were there only modified files or were there > also added/deleted files?) > -- Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/ --- Sign up for Review Board hosting at RBCommons: https://rbcommons.com/ --- Happy user? Let us know at http://www.reviewboard.org/users/ --- You received this message because you are subscribed to the Google Groups "reviewboard" group. To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Problem with 'rbt diff' and empty files in RBTools 0.6.2
Can you give more details on how to reproduce this? (E.g., What rbt diff options did you pass, if any? Were there only modified files or were there also added/deleted files?) Thanks! Anselina On Tuesday, 22 July 2014 13:26:38 UTC-4, Bruce Cran wrote: > > There's a problem with the empty files detection code in at least the > Mercurial client of RBTools 0.6.2: it's adding all the empty files that > exist in the repository. The relevant code is in Mercurial.py, > _handle_empty_files(): > > tip_empty_files = self._get_files_in_changeset(tip, get_empty=True) > added_empty_files = tip_empty_files - base_files > > base_empty_files = self._get_files_in_changeset(base, > get_empty=True) > deleted_empty_files = base_empty_files - tip_files > > if not (added_empty_files or deleted_empty_files): > return diff > > -- > Bruce > -- Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/ --- Sign up for Review Board hosting at RBCommons: https://rbcommons.com/ --- Happy user? Let us know at http://www.reviewboard.org/users/ --- You received this message because you are subscribed to the Google Groups "reviewboard" group. To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Problem with 'rbt diff' and empty files in RBTools 0.6.2
There's a problem with the empty files detection code in at least the Mercurial client of RBTools 0.6.2: it's adding all the empty files that exist in the repository. The relevant code is in Mercurial.py, _handle_empty_files(): tip_empty_files = self._get_files_in_changeset(tip, get_empty=True) added_empty_files = tip_empty_files - base_files base_empty_files = self._get_files_in_changeset(base, get_empty=True) deleted_empty_files = base_empty_files - tip_files if not (added_empty_files or deleted_empty_files): return diff -- Bruce -- Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/ --- Sign up for Review Board hosting at RBCommons: https://rbcommons.com/ --- Happy user? Let us know at http://www.reviewboard.org/users/ --- You received this message because you are subscribed to the Google Groups "reviewboard" group. To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.