##// END OF EJS Templates
revert: use util.lexists
Alexis S. L. Carvalho -
r4574:339b8aee default
parent child Browse files
Show More
@@ -2261,8 +2261,7 b' def revert(ui, repo, *pats, **opts):'
2261 2261 def handle(xlist, dobackup):
2262 2262 xlist[0].append(abs)
2263 2263 update[abs] = 1
2264 if (dobackup and not opts['no_backup'] and
2265 (os.path.islink(target) or os.path.exists(target))):
2264 if dobackup and not opts['no_backup'] and util.lexists(target):
2266 2265 bakname = "%s.orig" % rel
2267 2266 ui.note(_('saving current version of %s as %s\n') %
2268 2267 (rel, bakname))
General Comments 0
You need to be logged in to leave comments. Login now