##// 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 def handle(xlist, dobackup):
2261 def handle(xlist, dobackup):
2262 xlist[0].append(abs)
2262 xlist[0].append(abs)
2263 update[abs] = 1
2263 update[abs] = 1
2264 if (dobackup and not opts['no_backup'] and
2264 if dobackup and not opts['no_backup'] and util.lexists(target):
2265 (os.path.islink(target) or os.path.exists(target))):
2266 bakname = "%s.orig" % rel
2265 bakname = "%s.orig" % rel
2267 ui.note(_('saving current version of %s as %s\n') %
2266 ui.note(_('saving current version of %s as %s\n') %
2268 (rel, bakname))
2267 (rel, bakname))
General Comments 0
You need to be logged in to leave comments. Login now