##// END OF EJS Templates
relink: abort earlier when on different devices (issue3916)...
Simon Heimberg -
r20083:c69e5911 default
parent child Browse files
Show More
@@ -48,6 +48,10 b' def relink(ui, repo, origin=None, **opts'
48 ui.status(_('there is nothing to relink\n'))
48 ui.status(_('there is nothing to relink\n'))
49 return
49 return
50
50
51 if not util.samedevice(src.store.path, repo.store.path):
52 # No point in continuing
53 raise util.Abort(_('source and destination are on different devices'))
54
51 locallock = repo.lock()
55 locallock = repo.lock()
52 try:
56 try:
53 remotelock = src.lock()
57 remotelock = src.lock()
General Comments 0
You need to be logged in to leave comments. Login now