# HG changeset patch # User Idan Kamara # Date 1313772423 -10800 # Node ID 066dfa5c0b702d8acb6d75e91c69bfb49072d785 # Parent 18f72b2555536ec71fef0e370866eb56da7a4909 client: add archive command diff -r 18f72b255553 -r 066dfa5c0b70 hglib/client.py --- a/hglib/client.py Fri Aug 19 19:46:11 2011 +0300 +++ b/hglib/client.py Fri Aug 19 19:47:03 2011 +0300 @@ -193,6 +193,16 @@ for line in out.splitlines(): yield tuple(line.split(': ', 1)) + def archive(self, dest, rev=None, nodecode=False, prefix=None, type=None, + subrepos=False, include=None, exclude=None): + """ + create an unversioned archive of a repository revision + """ + args = cmdbuilder('archive', dest, r=rev, no_decode=nodecode, p=prefix, + t=type, S=subrepos, I=include, X=exclude) + + self.rawcommand(args) + def backout(self, rev, merge=False, parent=None, tool=None, message=None, logfile=None, date=None, user=None): if message and logfile: