Mercurial > hg > mercurial-crew-with-dirclash
comparison mercurial/hg.py @ 317:b18ce742566a
hg commit: user and date options
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
hg commit: user and date options
- From Ted Ts'o
manifest hash: f6ce29eed387664c6f0631b666158eb930876cb3
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFCrHx4ywK+sNU5EO8RAp/uAKCEGhvm1tpBJ9Bub8BlalWaIpMeqgCfUejo
IoevMbk4cjxQ5P3Zo2pSFs8=
=Ibp3
-----END PGP SIGNATURE-----
author | mpm@selenic.com |
---|---|
date | Sun, 12 Jun 2005 10:18:32 -0800 |
parents | 3402cb9a4c06 |
children | 73b8a8a059ec 27d08c0c2a7e |
comparison
equal
deleted
inserted
replaced
316:c48d069163d6 | 317:b18ce742566a |
---|---|
460 | 460 |
461 mnode = self.manifest.add(mm, mfm, tr, linkrev, c1[0], c2[0]) | 461 mnode = self.manifest.add(mm, mfm, tr, linkrev, c1[0], c2[0]) |
462 n = self.changelog.add(mnode, files, text, tr, p1, p2, user, date) | 462 n = self.changelog.add(mnode, files, text, tr, p1, p2, user, date) |
463 tr.close() | 463 tr.close() |
464 | 464 |
465 def commit(self, files = None, text = ""): | 465 def commit(self, files = None, text = "", user = None, date = None): |
466 commit = [] | 466 commit = [] |
467 remove = [] | 467 remove = [] |
468 if files: | 468 if files: |
469 for f in files: | 469 for f in files: |
470 s = self.dirstate.state(f) | 470 s = self.dirstate.state(f) |
527 edittext = self.ui.edit(edittext) | 527 edittext = self.ui.edit(edittext) |
528 if not edittext.rstrip(): | 528 if not edittext.rstrip(): |
529 return 1 | 529 return 1 |
530 text = edittext | 530 text = edittext |
531 | 531 |
532 n = self.changelog.add(mn, new, text, tr, p1, p2) | 532 n = self.changelog.add(mn, new, text, tr, p1, p2, user, date) |
533 tr.close() | 533 tr.close() |
534 | 534 |
535 self.dirstate.setparents(n) | 535 self.dirstate.setparents(n) |
536 self.dirstate.update(new, "n") | 536 self.dirstate.update(new, "n") |
537 self.dirstate.forget(remove) | 537 self.dirstate.forget(remove) |