Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

hgtk: add hgignore command, with ignore and filter aliases

The shell context menu offers this command as an option for
certain file names and file types.

Changeset 190cfd1f505f

Parent fc2a0d6b34cc

by Steve Borho

Changes to one file · Browse files at 190cfd1f505f Showing diff from parent fc2a0d6b34cc Diff from another changeset...

Change 1 of 2 Show Entire File hggtk/​hgtk.py Stacked
 
233
234
235
 
 
 
 
 
 
 
236
237
238
 
530
531
532
 
533
534
535
 
233
234
235
236
237
238
239
240
241
242
243
244
245
 
537
538
539
540
541
542
543
@@ -233,6 +233,13 @@
  opts['cwd'] = os.getcwd()   run(**opts)   +def hgignore(ui, *pats, **opts): + """repository initialization tool""" + from hggtk.hgignore import run + if pats and not pats[0].endswith('.hgignore'): + opts['fileglob'] = pats[0] + run(**opts) +  def hginit(ui, dest=None, **opts):   """repository initialization tool"""   from hggtk.hginit import run @@ -530,6 +537,7 @@
  ('d', 'date', '', _('record datecode as commit date'))],   _('hgtk commit [OPTIONS] [FILE]...')),   "^datamine|annotate|blame": (datamine, [], _('hgtk datamine')), + "^hgignore|ignore|filter": (hgignore, [], _('hgtk hgignore [FILE]')),   "^init": (hginit, [], _('hgtk init [DEST]')),   "^log|history": (log,   [('l', 'limit', '', _('limit number of changes displayed'))],