Changeset 1167 in tailor
- Timestamp:
- 06/20/06 21:07:39 (7 years ago)
- Hash name:
- 20060620190739-0ae3a-2df4d30f50994531fb1eb09327784c1684c244a6
- File:
-
- 1 edited
-
vcpx/hg.py (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
vcpx/hg.py
r1166 r1167 69 69 """Fetch new changesets from the source""" 70 70 repo = self._getRepo() 71 opts = self._defaultOpts('pull') 72 73 commands.pull(repo.ui, repo, "default", **opts) 71 72 self._hgCommand('pull', 'default') 74 73 75 74 from mercurial.node import bin … … 260 259 # TODO: keep a handle on the changeset holding this tag? Then 261 260 # we can extract author, log, date from it. 262 opts = self._defaultOpts('tag')263 261 264 262 # This seems gross. I don't get why I'm getting a unicode tag when … … 282 280 except KeyError: 283 281 pass 284 commands.tag(repo.ui, repo, tag, **opts)282 self._hgCommand('tag', tag) 285 283 286 284 def _defaultOpts(self, cmd): … … 288 286 # is easier, and while dispatch is easiest, you lose ui. 289 287 return dict([(f[1], f[2]) for f in commands.find(cmd)[1][1]]) 288 289 def _hgCommand(self, cmd, *args, **opts): 290 import os 291 292 allopts = self._defaultOpts(cmd) 293 allopts.update(opts) 294 cmd = getattr(commands, cmd) 295 cmd(self._ui, self._hg, *args, **allopts) 290 296 291 297 def _removePathnames(self, names): … … 370 376 371 377 def _initializeWorkingDir(self): 372 commands.add(self._ui, self._hg, self.basedir)378 self._hgCommand('add', self.basedir) 373 379 374 380 def _walk(self, subdir):
Note: See TracChangeset
for help on using the changeset viewer.
