Mercurial > public > mercurial-scm > python-hglib
comparison hglib/client.py @ 15:f1af31960414
client: change return value of commit() to (rev, node)
this is the original output hg emits with commit --debug
author | Idan Kamara <idankk86@gmail.com> |
---|---|
date | Wed, 10 Aug 2011 19:59:08 +0300 |
parents | e0d21c9db20b |
children | 943aff89b068 |
comparison
equal
deleted
inserted
replaced
14:e0d21c9db20b | 15:f1af31960414 |
---|---|
184 # --debug will print the committed cset | 184 # --debug will print the committed cset |
185 args = cmdbuilder('commit', debug=True, m=message, A=addremove) | 185 args = cmdbuilder('commit', debug=True, m=message, A=addremove) |
186 | 186 |
187 out = self.rawcommand(args) | 187 out = self.rawcommand(args) |
188 rev, node = out.splitlines()[-1].rsplit(':') | 188 rev, node = out.splitlines()[-1].rsplit(':') |
189 return self.log(node)[0] | 189 return int(rev.split()[-1]), node |
190 | 190 |
191 def config(self, refresh=False): | 191 def config(self, refresh=False): |
192 if not self._config or refresh: | 192 if not self._config or refresh: |
193 self._config.clear() | 193 self._config.clear() |
194 | 194 |