mercurial/cmdutil.py
changeset 32005 2406dbba49bd
parent 31807 e6eb86b154c5
child 32045 3eceeede26e9
equal deleted inserted replaced
32004:bd3cb917761a 32005:2406dbba49bd
  2288     if not opts.get('dry_run'):
  2288     if not opts.get('dry_run'):
  2289         rejected = wctx.add(names, prefix)
  2289         rejected = wctx.add(names, prefix)
  2290         bad.extend(f for f in rejected if f in match.files())
  2290         bad.extend(f for f in rejected if f in match.files())
  2291     return bad
  2291     return bad
  2292 
  2292 
       
  2293 def addwebdirpath(repo, serverpath, webconf):
       
  2294     webconf[serverpath] = repo.root
       
  2295     repo.ui.debug('adding %s = %s\n' % (serverpath, repo.root))
       
  2296 
       
  2297     for r in repo.revs('filelog("path:.hgsub")'):
       
  2298         ctx = repo[r]
       
  2299         for subpath in ctx.substate:
       
  2300             ctx.sub(subpath).addwebdirpath(serverpath, webconf)
       
  2301 
  2293 def forget(ui, repo, match, prefix, explicitonly):
  2302 def forget(ui, repo, match, prefix, explicitonly):
  2294     join = lambda f: os.path.join(prefix, f)
  2303     join = lambda f: os.path.join(prefix, f)
  2295     bad = []
  2304     bad = []
  2296     badfn = lambda x, y: bad.append(x) or match.bad(x, y)
  2305     badfn = lambda x, y: bad.append(x) or match.bad(x, y)
  2297     wctx = repo[None]
  2306     wctx = repo[None]