X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=git-merge-recursive.py;h=1bf73f336d4c34011b9cfe5a13b88a1f657d3f4e;hb=a52e4ef877f693a69710145f56d867365a755f91;hp=e6cbdde71ad94303a728e0083a3375280f49a7df;hpb=46e651743ae5c0938c4ff076a0453ecc9611a520;p=git.git diff --git a/git-merge-recursive.py b/git-merge-recursive.py index e6cbdde7..1bf73f33 100755 --- a/git-merge-recursive.py +++ b/git-merge-recursive.py @@ -1,4 +1,7 @@ #!/usr/bin/python +# +# Copyright (C) 2005 Fredrik Kuivinen +# import sys, math, random, os, re, signal, tempfile, stat, errno, traceback from heapq import heappush, heappop @@ -301,13 +304,13 @@ def uniquePath(path, branch): raise branch = branch.replace('/', '_') - newPath = path + '_' + branch + newPath = path + '~' + branch suffix = 0 while newPath in currentFileSet or \ newPath in currentDirectorySet or \ fileExists(newPath): suffix += 1 - newPath = path + '_' + branch + '_' + str(suffix) + newPath = path + '~' + branch + '_' + str(suffix) currentFileSet.add(newPath) return newPath