comparison mercurial/subrepo.py @ 12270:166b9866580a

add: recurse into subrepositories with --subrepos/-S flag
author Martin Geisler <mg@lazybytes.net>
date Mon, 13 Sep 2010 13:09:20 +0200
parents 21eb85e9ea94
children 42ecd56399d7
comparison
equal deleted inserted replaced
12269:877236cdd437 12270:166b9866580a
253 253
254 This may be a no-op on some systems. 254 This may be a no-op on some systems.
255 """ 255 """
256 raise NotImplementedError 256 raise NotImplementedError
257 257
258 def add(self, ui, match, dryrun, prefix):
259 return []
258 260
259 def status(self, rev2, **opts): 261 def status(self, rev2, **opts):
260 return [], [], [], [], [], [], [] 262 return [], [], [], [], [], [], []
261 263
262 def diff(self, diffopts, node2, match, prefix, **opts): 264 def diff(self, diffopts, node2, match, prefix, **opts):
288 defpushpath = _abssource(self._repo, True) 290 defpushpath = _abssource(self._repo, True)
289 addpathconfig('default', defpath) 291 addpathconfig('default', defpath)
290 if defpath != defpushpath: 292 if defpath != defpushpath:
291 addpathconfig('default-push', defpushpath) 293 addpathconfig('default-push', defpushpath)
292 fp.close() 294 fp.close()
295
296 def add(self, ui, match, dryrun, prefix):
297 return cmdutil.add(ui, self._repo, match, dryrun, True,
298 os.path.join(prefix, self._path))
293 299
294 def status(self, rev2, **opts): 300 def status(self, rev2, **opts):
295 try: 301 try:
296 rev1 = self._state[1] 302 rev1 = self._state[1]
297 ctx1 = self._repo[rev1] 303 ctx1 = self._repo[rev1]