author | Thomas Arendsen Hein <thomas@intevation.de> |
Sat, 21 Jul 2007 10:39:42 +0200 | |
changeset 4941 | 8933b8ea871a |
parent 4940 | 71fed370b7a7 |
child 4942 | c79e3fa6dc29 |
mercurial/lock.py | file | annotate | diff | comparison | revisions |
--- a/mercurial/lock.py +++ b/mercurial/lock.py @@ -60,7 +60,7 @@ class lock(object): def trylock(self): if lock._host is None: lock._host = socket.gethostname() - lockname = lock._host + ':' + str(os.getpid()) + lockname = '%s:%s' % (lock._host, os.getpid()) while not self.held: try: util.makelock(lockname, self.f)