Mercurial > python-hglib
view .hgtags @ 127:53387d1e620b
client: connect to repo if necessary when using "with" statement
While the '__exit__' closes the connection to the server, the __enter__ method
does not open it. Without this patch, a disconnected repo cannot be used with a
context managed unless you explicitely call the "open" method.
author | Paul Tonelli <paul.tonelli@logilab.fr> |
---|---|
date | Mon, 16 Jun 2014 18:29:06 +0200 |
parents | cc905ee18449 |
children | a3373bf28ccb |
line wrap: on
line source
c41442cb355d55ca152d5f13a95a6bf2ebc5b870 0.1 cc2b7540fa2bd0ddb8ba29786a0f73d682bee0a7 0.2 86ff8611a8fad14d4c1dba6d75bc26caaa41e951 0.3 5fe53db61aa433018de8b0ee296db868f666cee7 0.4 c635e6e7054f2600d36343eaa1770cb36549382a 0.9 8867908fe8c751dc0aef6194dd401ae08a4931f3 1.0 e738d6fe5f3ff613a4ee2c0d759eee0ee4f5c9ff 1.1 5d3783aebe5f82bb9dc90fde31543c262b797dd4 1.2