Mercurial > public > mercurial-scm > hg-stable
diff hgext/record.py @ 5128:c9126c24e098
record: work properly if invoked in a subdirectory
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Mon, 06 Aug 2007 12:53:17 -0700 |
parents | 4f34d9b2568e |
children | eca5b31cffc7 |
line wrap: on
line diff
--- a/hgext/record.py Mon Aug 06 20:31:15 2007 +0200 +++ b/hgext/record.py Mon Aug 06 12:53:17 2007 -0700 @@ -363,7 +363,7 @@ try: for realname, tmpname in backups.iteritems(): ui.debug('restoring %r to %r\n' % (tmpname, realname)) - util.copyfile(tmpname, realname) + util.copyfile(tmpname, repo.wjoin(realname)) os.unlink(tmpname) os.rmdir(backupdir) except OSError: