--- a/hgext/largefiles/lfcommands.py Fri Jan 04 19:06:42 2013 +0100
+++ b/hgext/largefiles/lfcommands.py Thu Jan 10 15:33:14 2013 +0100
@@ -483,8 +483,8 @@
abslfile = repo.wjoin(lfile)
absstandin = repo.wjoin(lfutil.standin(lfile))
if os.path.exists(absstandin):
- if os.path.exists(absstandin+'.orig'):
- shutil.copyfile(abslfile, abslfile+'.orig')
+ if os.path.exists(absstandin + '.orig') and os.path.exists(abslfile):
+ shutil.copyfile(abslfile, abslfile + '.orig')
expecthash = lfutil.readstandin(repo, lfile)
if (expecthash != '' and
(not os.path.exists(abslfile) or