##// END OF EJS Templates
Print changeset metadata for export
mpm@selenic.com -
r68:6fa994fe default
parent child Browse files
Show More
@@ -193,7 +193,17 b' elif cmd == "diff":'
193
193
194 elif cmd == "export":
194 elif cmd == "export":
195 node = repo.lookup(args[0])
195 node = repo.lookup(args[0])
196 prev = repo.changelog.parents(node)[0]
196 prev, other = repo.changelog.parents(node)
197 change = repo.changelog.read(node)
198 print "# HG changeset patch"
199 print "# User %s" % change[1]
200 print "# Node ID %s" % hg.hex(node)
201 print "# Parent %s" % hg.hex(prev)
202 print
203 if other != hg.nullid:
204 print "# Parent %s" % hg.hex(other)
205 print change[4]
206
197 diff(None, prev, node)
207 diff(None, prev, node)
198
208
199 elif cmd == "debugchangegroup":
209 elif cmd == "debugchangegroup":
General Comments 0
You need to be logged in to leave comments. Login now