mercurial/scmutil.py
changeset 34158 9e4f82bc2b0b
parent 34040 d5b2beca16c0
child 34334 4647e0a8d3d7
--- a/mercurial/scmutil.py	Tue Sep 12 19:27:01 2017 -0700
+++ b/mercurial/scmutil.py	Mon Sep 11 17:49:49 2017 +0000
@@ -553,7 +553,7 @@
     '''customize where .orig files are created
 
     Fetch user defined path from config file: [ui] origbackuppath = <path>
-    Fall back to default (filepath) if not specified
+    Fall back to default (filepath with .orig suffix) if not specified
     '''
     origbackuppath = ui.config('ui', 'origbackuppath')
     if origbackuppath is None:
@@ -567,7 +567,7 @@
         ui.note(_('creating directory: %s\n') % origbackupdir)
         util.makedirs(origbackupdir)
 
-    return fullorigpath + ".orig"
+    return fullorigpath
 
 class _containsnode(object):
     """proxy __contains__(node) to container.__contains__ which accepts revs"""