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

commit: win32text fixes

* Use repo.ui for configuration, since win32text is usually configured per-repo
* Give patch.internalpath() an eolmode=None argument to force it to look at
patch.eol

This fixes issue #82 if the user puts [patch] eol=crlf in their config file

Changeset 1c0bd370e7f7

Parent 1fac7cbd4f46

by Steve Borho

Changes to one file · Browse files at 1c0bd370e7f7 Showing diff from parent 1fac7cbd4f46 Diff from another changeset...

Change 1 of 2 Show Entire File hggtk/​commit.py Stacked
 
412
413
414
415
 
416
417
418
 
463
464
465
466
 
 
467
468
469
 
412
413
414
 
415
416
417
418
 
463
464
465
 
466
467
468
469
470
@@ -412,7 +412,7 @@
    def commit_selected(self, files):   # 1a. get list of chunks not rejected - repo, ui = self.repo, self.ui + repo, ui = self.repo, self.repo.ui     # 2. backup changed files, so we can restore them in the end   backups = {} @@ -463,7 +463,8 @@
  if dopatch:   try:   pfiles = {} - patch.internalpatch(fp, ui, 1, repo.root, files=pfiles) + patch.internalpatch(fp, ui, 1, repo.root, files=pfiles, + eolmode=None)   patch.updatedir(ui, repo, pfiles)   except patch.PatchError, err:   s = str(err)