Show More
@@ -313,8 +313,8 b' def canonpath(root, cwd, myname, auditor' | |||||
313 | try: |
|
313 | try: | |
314 | name_st = os.stat(name) |
|
314 | name_st = os.stat(name) | |
315 | except OSError: |
|
315 | except OSError: | |
316 |
|
|
316 | name_st = None | |
317 | if util.samestat(name_st, root_st): |
|
317 | if name_st and util.samestat(name_st, root_st): | |
318 | if not rel: |
|
318 | if not rel: | |
319 | # name was actually the same as root (maybe a symlink) |
|
319 | # name was actually the same as root (maybe a symlink) | |
320 | return '' |
|
320 | return '' |
@@ -168,11 +168,12 b' now addremove should remove old files' | |||||
168 | ? foo |
|
168 | ? foo | |
169 | $ hg status ../link |
|
169 | $ hg status ../link | |
170 | ? foo |
|
170 | ? foo | |
|
171 | $ hg add foo | |||
|
172 | $ hg cp foo "$TESTTMP/link/bar" | |||
|
173 | foo has not been committed yet, so no copy data will be stored for bar. | |||
171 | $ cd .. |
|
174 | $ cd .. | |
172 |
|
175 | |||
173 |
|
176 | |||
174 |
|
||||
175 |
|
||||
176 | $ hg init b |
|
177 | $ hg init b | |
177 | $ cd b |
|
178 | $ cd b | |
178 | $ ln -s nothing dangling |
|
179 | $ ln -s nothing dangling |
General Comments 0
You need to be logged in to leave comments.
Login now