comparison mercurial/repair.py @ 18764:64b5562550e2

blackbox: add backup bundle paths to blackbox logs Writes the backup bundle paths to the blackbox so it's easy to see which backup bundle is associated with which command when you are debugging an issue. Example output: 2013/03/13 10:39:56 durham> strip tip 2013/03/13 10:39:59 durham> saved backup bundle to /data/users/durham/www-hg/.hg/strip-backup/e5fac262363a-backup.hg 2013/03/13 10:40:03 durham> strip tip exited 0 after 7.97 seconds
author Durham Goode <durham@fb.com>
date Wed, 13 Mar 2013 10:43:51 -0700
parents 904b7109938e
children 5fc2ae1c631b
comparison
equal deleted inserted replaced
18763:cd2c82510aa2 18764:64b5562550e2
117 # create a changegroup for all the branches we need to keep 117 # create a changegroup for all the branches we need to keep
118 backupfile = None 118 backupfile = None
119 if backup == "all": 119 if backup == "all":
120 backupfile = _bundle(repo, stripbases, cl.heads(), node, topic) 120 backupfile = _bundle(repo, stripbases, cl.heads(), node, topic)
121 repo.ui.status(_("saved backup bundle to %s\n") % backupfile) 121 repo.ui.status(_("saved backup bundle to %s\n") % backupfile)
122 repo.ui.log("backupbundle", "saved backup bundle to %s\n", backupfile)
122 if saveheads or savebases: 123 if saveheads or savebases:
123 # do not compress partial bundle if we remove it from disk later 124 # do not compress partial bundle if we remove it from disk later
124 chgrpfile = _bundle(repo, savebases, saveheads, node, 'temp', 125 chgrpfile = _bundle(repo, savebases, saveheads, node, 'temp',
125 compress=keeppartialbundle) 126 compress=keeppartialbundle)
126 127