##// END OF EJS Templates
Backup symbolic links when reverting
Eric St-Jean -
r4272:ad33eeee default
parent child Browse files
Show More
@@ -2256,7 +2256,8 b' def revert(ui, repo, *pats, **opts):'
2256 def handle(xlist, dobackup):
2256 def handle(xlist, dobackup):
2257 xlist[0].append(abs)
2257 xlist[0].append(abs)
2258 update[abs] = 1
2258 update[abs] = 1
2259 if dobackup and not opts['no_backup'] and os.path.exists(rel):
2259 if (dobackup and not opts['no_backup'] and
2260 (os.path.islink(rel) or os.path.exists(rel))):
2260 bakname = "%s.orig" % rel
2261 bakname = "%s.orig" % rel
2261 ui.note(_('saving current version of %s as %s\n') %
2262 ui.note(_('saving current version of %s as %s\n') %
2262 (rel, bakname))
2263 (rel, bakname))
General Comments 0
You need to be logged in to leave comments. Login now