equal
deleted
inserted
replaced
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) |