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

hgshelve: let change ee88384b8e24 work with old hg

Changeset 28389e72f6c5

Parent 62376638b87b

by Simon Heimberg

Changes to one file · Browse files at 28389e72f6c5 Showing diff from parent 62376638b87b Diff from another changeset...

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
508
509
510
511
512
@@ -501,7 +501,12 @@
  if dopatch:   ui.debug(_('applying patch\n'))   ui.debug(fp.getvalue()) - patch.internalpatch(fp, ui, 1, repo.root, eolmode=None) + if hasattr(patch, 'linereader'): + # Mercurial 1.3 + patch.internalpatch(fp, ui, 1, repo.root, eolmode=None) + else: + # Mercurial 1.2 + patch.internalpatch(fp, ui, 1, repo.root)   del fp     # 3c. apply filtered patch to clean repo (shelve)