Mercurial > hg > pyhgsh
diff hg @ 29:4d3a5dcb6972
Make diffdir take a revision argument
author | mpm@selenic.com |
---|---|
date | Thu, 05 May 2005 15:05:50 -0800 |
parents | 57a1eef79415 |
children | 642058291e74 |
line wrap: on
line diff
--- a/hg Wed May 04 22:57:51 2005 -0800 +++ b/hg Thu May 05 15:05:50 2005 -0800 @@ -112,7 +112,7 @@ repo.commit(files) elif cmd == "status": - (c, a, d) = repo.diffdir(repo.root) + (c, a, d) = repo.diffdir(repo.root, repo.current) for f in c: print "C", f for f in a: print "?", f for f in d: print "R", f @@ -123,7 +123,7 @@ change = repo.changelog.read(repo.current) mmap = repo.manifest.read(change[0]) - (c, a, d) = repo.diffdir(repo.root) + (c, a, d) = repo.diffdir(repo.root, repo.current) if args: nc = [ x for x in c if x in args ] @@ -151,7 +151,7 @@ sys.stdout.write(mdiff.unidiff(to, tn, f)) elif cmd == "addremove": - (c, a, d) = repo.diffdir(repo.root) + (c, a, d) = repo.diffdir(repo.root, repo.current) repo.add(a) repo.remove(d)