Show More
@@ -101,13 +101,9 b' def findoutgoing(repo, remote, force):' | |||||
101 |
|
101 | |||
102 | # -- Private worker functions ------------------------------------------ |
|
102 | # -- Private worker functions ------------------------------------------ | |
103 |
|
103 | |||
104 | if os.name == 'nt': |
|
|||
105 | from mercurial import win32 |
|
|||
106 | linkfn = win32.oslink |
|
|||
107 |
|
||||
108 | def link(src, dest): |
|
104 | def link(src, dest): | |
109 | try: |
|
105 | try: | |
110 |
link |
|
106 | util.oslink(src, dest) | |
111 | except OSError: |
|
107 | except OSError: | |
112 | # If hardlinks fail fall back on copy |
|
108 | # If hardlinks fail fall back on copy | |
113 | shutil.copyfile(src, dest) |
|
109 | shutil.copyfile(src, dest) |
General Comments 0
You need to be logged in to leave comments.
Login now