Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

hgshelve/commit: let work with old hg

Changeset e82a3dd94efa

Parent 243ddad19471

by Simon Heimberg

Changes to 2 files · Browse files at e82a3dd94efa Showing diff from parent 243ddad19471 Diff from another changeset...

Change 1 of 1 Show Entire File hggtk/​commit.py Stacked
 
463
464
465
466
 
 
 
467
 
 
 
468
469
470
 
463
464
465
 
466
467
468
469
470
471
472
473
474
475
@@ -463,8 +463,13 @@
  if dopatch:   try:   pfiles = {} - patch.internalpatch(fp, ui, 1, repo.root, files=pfiles, + if patch.patchfile.__bases__: + # Mercurial 1.3 + patch.internalpatch(fp, ui, 1, repo.root, files=pfiles,   eolmode=None) + else: + # Mercurial 1.2 + patch.internalpatch(fp, ui, 1, repo.root, files=pfiles)   patch.updatedir(ui, repo, pfiles)   except patch.PatchError, err:   s = str(err)
Change 1 of 1 Show Entire File hggtk/​hgshelve.py Stacked
 
501
502
503
504
 
505
506
507
 
501
502
503
 
504
505
506
507
@@ -501,7 +501,7 @@
  if dopatch:   ui.debug(_('applying patch\n'))   ui.debug(fp.getvalue()) - if hasattr(patch, 'linereader'): + if patch.patchfile.__bases__:   # Mercurial 1.3   patch.internalpatch(fp, ui, 1, repo.root, eolmode=None)   else: