|  | 
 | 
Created on 2010-04-29.11:07:18 by mornfall, last changed 2011-05-10.21:35:41 by darcswatch. Tracked on DarcsWatch. 
 
  
 See mailing list archives
 for discussion on individual patches.
  
   | msg10876 (view) | Author: mornfall | Date: 2010-04-29.11:07:17 |  |  
   | Hi,
this patch should fix the convert performance regression and the spurious "We
have conflicts in" messages during convert in 2.4.
I have done it on top of noslurps to avoid further conflict proliferation, but
it could be re-done on top of current mainline and conflicts could be
re-resolved (or I could try amending in the noslurps branch).
Yours,
   Petr.
3 patches for repository http://darcs.net:
Thu Feb 11 01:13:26 CET 2010  Petr Rockai <me@mornfall.net>
  * Use stock setScriptsExecutable from Darcs.Repository in Commands.Convert.
Wed Apr 28 22:50:30 CEST 2010  Petr Rockai <me@mornfall.net>
  * Resolve conflicts in Commands.Convert.
Thu Apr 29 12:48:11 CEST 2010  Petr Rockai <me@mornfall.net>
  * Resolve issue1760: Fix working directory handling in Commands.Convert. Attachments |  
   | msg10877 (view) | Author: ganesh | Date: 2010-04-29.16:09:09 |  |  
   | Petr Rockai wrote:
> this patch should fix the convert performance regression and the
> spurious "We have conflicts in" messages during convert in 2.4. 
> 
> I have done it on top of noslurps to avoid further conflict
> proliferation, but it could be re-done on top of current mainline and
> conflicts could be re-resolved (or I could try amending in the
> noslurps branch).   
I'd suggest this patch should go into 2.4, so might be best to redo it
for that branch and then merge onto mainline/noslurps and live with the
conflicts. Reinier/Eric, could you confirm whether you want it for 2.4?
Ganesh
=============================================================================== 
Please access the attached hyperlink for an important electronic communications disclaimer: 
http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html 
=============================================================================== |  
   | msg10879 (view) | Author: kowey | Date: 2010-04-29.21:18:47 |  |  
   | On Thu, Apr 29, 2010 at 17:08:05 +0100, Sittampalam, Ganesh wrote:
> I'd suggest this patch should go into 2.4, so might be best to redo it
> for that branch and then merge onto mainline/noslurps and live with the
> conflicts. Reinier/Eric, could you confirm whether you want it for 2.4?
+1
Seems like a fairly non-invasive change which could people a lot.
-- 
Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow>
PGP Key ID: 08AC04F9 |  
   | msg10885 (view) | Author: mornfall | Date: 2010-05-02.11:10:41 |  |  
   | This is a direct-on-mainline patch for issue1760. I will amend the noslurps
branch when this is pushed onto mainline.
Yours,
   Petr.
1 patch for repository http://darcs.net:
Sun May  2 12:57:06 CEST 2010  Petr Rockai <me@mornfall.net>
  * Resolve issue1760: Fix working directory handling in Commands.Convert. Attachments |  
   | msg10925 (view) | Author: kowey | Date: 2010-05-04.21:46:04 |  |  
   | I confirm that this applies to branch-2.4.  Could you provide a tiny bit
more explanation, Petr?
How does this solve the performance regression (and also eliminate the
spurious conflicts message?) |  
   | msg10926 (view) | Author: kowey | Date: 2010-05-04.21:47:59 |  |  
   | Oh, I think all the explanation I'm looking for is in Ganesh's comment
that "Also, darcs convert is producing spurious messages about
conflicts. This                                                     
is caused by the working copy not being updated after each chunk of    
                                                     
patches is converted, so the next chunk of patches causes a conflict   
                                                     
with working. The message is harmless as it's only the working copy that
                                                    
is left in a mess, and at the very end it gets reverted anyway, but the
                                                     
profile below suggests that these conflicts may also be the cause of the
                                                    
massive slowdown. " |  
   | msg10934 (view) | Author: kowey | Date: 2010-05-05.13:11:08 |  |  
   | On Sun, May 02, 2010 at 11:10:41 +0000, Petr Ročkai wrote:
> -          applySome xs = do tentativelyMergePatches repository "convert" (AllowConflicts:opts) NilFL xs
> +          applySome xs = do Sealed pw <- tentativelyMergePatches repository "convert" (AllowConflicts:opts) NilFL xs
>                              finalizeRepositoryChanges repository -- this is to clean out pristine.hashed
>                              revertRepositoryChanges repository
> hunk ./src/Darcs/Commands/Convert.lhs 217
> +                            revertable $ applyToWorking repository opts pw
> +                            invalidateIndex repository
Petr has blessed my reading of this patch on IRC, so I'm pushing it in
just to get as much Darcs 2.4.2 work out of the way as soon as possible.
Eric: is it OK for me to push the issue1760 (convert regression) patch?
      I just saw that it applies to working on the fly (which if I understand
      correctly, avoids conflicts building up in working)
      and invalidates the index (which seems to make sense as a consequence
      of applying to working)
Petr: That's the gist. In the end, however, it would still
      be better to use Ganesh's tentativelyAddPatch approach instead of the
      current one. Possibly for 2.5.
-- 
Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow>
PGP Key ID: 08AC04F9 |  
   | msg10945 (view) | Author: darcswatch | Date: 2010-05-05.15:05:59 |  |  
   | This patch bundle (with 1 patches) was just applied to the repository http://darcs.net/.
This message was brought to you by DarcsWatch
http://darcswatch.nomeata.de/repo_http:__darcs.net_.html#bundle-aa86b24b9f15869f3dcfc92a3a5a9a5c8ccc5b5d |  
   | msg14332 (view) | Author: darcswatch | Date: 2011-05-10.21:35:41 |  |  
   | This patch bundle (with 1 patches) was just applied to the repository http://darcs.net/reviewed.
This message was brought to you by DarcsWatch
http://darcswatch.nomeata.de/repo_http:__darcs.net_reviewed.html#bundle-aa86b24b9f15869f3dcfc92a3a5a9a5c8ccc5b5d |  |
 
| Date | User | Action | Args |  | 2010-04-29 11:07:18 | mornfall | create |  |  | 2010-04-29 11:08:29 | darcswatch | set | darcswatchurl: http://darcswatch.nomeata.de/repo_http:__darcs.net_.html#bundle-b42db020b6e3a936b407b3f3035984c8069e2ea0 |  | 2010-04-29 16:09:10 | ganesh | set | nosy:
  + kowey, ganesh, tux_rocker messages:
  + msg10877
 title: Use stock setScriptsExecutable from Darc... (and 2 more) -> Use stock setScriptsExecutable fromDarc... (and 2 more)
 |  | 2010-04-29 21:18:47 | kowey | set | messages:
  + msg10879 |  | 2010-05-02 11:10:41 | mornfall | set | files:
  + resolve-issue1760_-fix-working-directory-handling-in-commands_convert_.dpatch, unnamed messages:
  + msg10885
 title: Use stock setScriptsExecutable fromDarc... (and 2 more) -> Resolve issue1760: Fix working directory handling in Commands.Convert.
 |  | 2010-05-02 11:12:24 | darcswatch | set | darcswatchurl: http://darcswatch.nomeata.de/repo_http:__darcs.net_.html#bundle-b42db020b6e3a936b407b3f3035984c8069e2ea0 -> http://darcswatch.nomeata.de/repo_http:__darcs.net_.html#bundle-aa86b24b9f15869f3dcfc92a3a5a9a5c8ccc5b5d |  | 2010-05-04 21:46:04 | kowey | set | messages:
  + msg10925 |  | 2010-05-04 21:47:59 | kowey | set | messages:
  + msg10926 |  | 2010-05-05 13:11:09 | kowey | set | messages:
  + msg10934 |  | 2010-05-05 15:05:59 | darcswatch | set | status: needs-review -> accepted messages:
  + msg10945
 |  | 2011-05-10 18:05:47 | darcswatch | set | darcswatchurl: http://darcswatch.nomeata.de/repo_http:__darcs.net_.html#bundle-aa86b24b9f15869f3dcfc92a3a5a9a5c8ccc5b5d -> http://darcswatch.nomeata.de/repo_http:__darcs.net_reviewed.html#bundle-b42db020b6e3a936b407b3f3035984c8069e2ea0 |  | 2011-05-10 21:35:41 | darcswatch | set | messages:
  + msg14332 | 
 |