comparison mercurial/commands.py @ 259:45c293b71341

fix addremove -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 fix addremove manifest hash: 15a37c156e2186e89ef086ef974541bf1c695280 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCoqunywK+sNU5EO8RAuICAJ9x7W0xz1ZBJ7nFYiiQEBljyYwqhACfVE7R oiP0nigB4SzQMMmifrQ7UkA= =/c5l -----END PGP SIGNATURE-----
author mpm@selenic.com
date Sat, 04 Jun 2005 23:37:11 -0800
parents 65dccc4555c2
children 3db700146536
comparison
equal deleted inserted replaced
258:268bcb5a072a 259:45c293b71341
102 repo.add(relpath(repo, (file,) + files)) 102 repo.add(relpath(repo, (file,) + files))
103 103
104 def addremove(ui, repo): 104 def addremove(ui, repo):
105 """add all new files, delete all missing files""" 105 """add all new files, delete all missing files"""
106 (c, a, d, u) = repo.diffdir(repo.root) 106 (c, a, d, u) = repo.diffdir(repo.root)
107 repo.add(a) 107 repo.add(u)
108 repo.remove(d) 108 repo.remove(d)
109 109
110 def annotate(u, repo, file, *files, **ops): 110 def annotate(u, repo, file, *files, **ops):
111 """show changeset information per file line""" 111 """show changeset information per file line"""
112 def getnode(rev): 112 def getnode(rev):