diff hgext/largefiles/lfcommands.py @ 27651:07fc2f2134ba

origpath: move from cmdutil to scmutil This is a lower-level function so it doesn't need to be in cmdutil, and putting it here avoids a bunch of potential import cycle issues.
author Siddharth Agarwal <sid0@fb.com>
date Sat, 02 Jan 2016 03:02:57 -0800
parents ef5bab63af85
children 8ceaaf63ca80
line wrap: on
line diff
--- a/hgext/largefiles/lfcommands.py	Sun Nov 22 17:57:35 2015 -0800
+++ b/hgext/largefiles/lfcommands.py	Sat Jan 02 03:02:57 2016 -0800
@@ -444,9 +444,9 @@
         updated, removed = 0, 0
         for lfile in lfiles:
             abslfile = repo.wjoin(lfile)
-            abslfileorig = cmdutil.origpath(ui, repo, abslfile)
+            abslfileorig = scmutil.origpath(ui, repo, abslfile)
             absstandin = repo.wjoin(lfutil.standin(lfile))
-            absstandinorig = cmdutil.origpath(ui, repo, absstandin)
+            absstandinorig = scmutil.origpath(ui, repo, absstandin)
             if os.path.exists(absstandin):
                 if (os.path.exists(absstandinorig) and
                     os.path.exists(abslfile)):