mercurial/scmutil.py
changeset 41505 e6ec0737b706
parent 41443 f83b230b7fb3
child 41506 02186c6871ac
equal deleted inserted replaced
41504:09f1c17e24dd 41505:e6ec0737b706
   723         return [parents[0], repo[nullrev]]
   723         return [parents[0], repo[nullrev]]
   724     if parents[0].rev() >= intrev(ctx) - 1:
   724     if parents[0].rev() >= intrev(ctx) - 1:
   725         return []
   725         return []
   726     return parents
   726     return parents
   727 
   727 
       
   728 def getuipathfn(repo, relative):
       
   729     if relative:
       
   730         cwd = repo.getcwd()
       
   731         pathto = repo.pathto
       
   732         return lambda f: pathto(f, cwd)
       
   733     else:
       
   734         return lambda f: f
       
   735 
   728 def expandpats(pats):
   736 def expandpats(pats):
   729     '''Expand bare globs when running on windows.
   737     '''Expand bare globs when running on windows.
   730     On posix we assume it already has already been done by sh.'''
   738     On posix we assume it already has already been done by sh.'''
   731     if not util.expandglobs:
   739     if not util.expandglobs:
   732         return list(pats)
   740         return list(pats)