Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/commands.py @ 6743:86e8187b721a
simplify flag handling
add _checklink var to dirstate
introduce dirstate.flagfunc
switch users of util.execfunc/linkfunc to flagfunc
change manifestdict.set to take a flags string
change ctx.fileflags to ctx.flags
change gitmode func to a dict
remove util.execfunc/linkfunc
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 26 Jun 2008 13:46:34 -0500 |
parents | b148e9099133 |
children | 1dca460e7d1e |
comparison
equal
deleted
inserted
replaced
6742:2d54e7c1e69d | 6743:86e8187b721a |
---|---|
2478 handle(remove, False) | 2478 handle(remove, False) |
2479 | 2479 |
2480 if not opts.get('dry_run'): | 2480 if not opts.get('dry_run'): |
2481 def checkout(f): | 2481 def checkout(f): |
2482 fc = ctx[f] | 2482 fc = ctx[f] |
2483 repo.wwrite(f, fc.data(), fc.fileflags()) | 2483 repo.wwrite(f, fc.data(), fc.flags()) |
2484 | 2484 |
2485 audit_path = util.path_auditor(repo.root) | 2485 audit_path = util.path_auditor(repo.root) |
2486 for f in remove[0]: | 2486 for f in remove[0]: |
2487 if repo.dirstate[f] == 'a': | 2487 if repo.dirstate[f] == 'a': |
2488 repo.dirstate.forget(f) | 2488 repo.dirstate.forget(f) |