# HG changeset patch # User Jeff Hammel # Date 1363122389 25200 # Node ID 0d741a309fdb7416b7f856956f8abf33870e1bdf # Parent d1aa54a8fd89d1b9972dab37819ed9817e66ce58 add a directory command diff -r d1aa54a8fd89 -r 0d741a309fdb hq/main.py --- a/hq/main.py Tue Mar 12 13:06:09 2013 -0700 +++ b/hq/main.py Tue Mar 12 14:06:29 2013 -0700 @@ -113,6 +113,13 @@ return '\n'.join([self._call(i).strip() for i in ('root', 'status', 'qseries')]) + def directory(self): + """ + patch queue directory + """ + patch_dir = os.path.join(self.root, '.hg', 'patches') + return patch_dir if os.path.isdir(patch_dir) else None + ### internals def _call(self, *args):