##// END OF EJS Templates
safehasattr: pass attribute name as string instead of bytes...
marmoute -
r51467:c04abc73 default
parent child Browse files
Show More
@@ -317,7 +317,7 b' def sharedreposource(repo):'
317 if repo.sharedpath == repo.path:
317 if repo.sharedpath == repo.path:
318 return None
318 return None
319
319
320 if util.safehasattr(repo, b'srcrepo') and repo.srcrepo:
320 if util.safehasattr(repo, 'srcrepo') and repo.srcrepo:
321 return repo.srcrepo
321 return repo.srcrepo
322
322
323 # the sharedpath always ends in the .hg; we want the path to the repo
323 # the sharedpath always ends in the .hg; we want the path to the repo
General Comments 0
You need to be logged in to leave comments. Login now