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

hgtk: make --repository option do something useful

We're pretty much forced to os.chdir() here since most of THG depends on the
CWD being inside the current repository (THG must create repository objects
repeatedly, unlike HG which typically only does it once or twice per invocation).

fixes #368

Changeset 3a2b59afd222

Parent fa7d2be835e4

by Steve Borho

Changes to one file · Browse files at 3a2b59afd222 Showing diff from parent fa7d2be835e4 Diff from another changeset...

Change 1 of 2 Show Entire File hggtk/​hgtk.py Stacked
 
186
187
188
 
 
 
 
189
190
191
 
195
196
197
198
199
200
201
202
203
 
186
187
188
189
190
191
192
193
194
195
 
199
200
201
 
 
 
202
203
204
@@ -186,6 +186,10 @@
  elif not cmd:   return help_(ui, 'shortlist')   + if options['repository']: + path = ui.expandpath(options['repository']) + cmdoptions['repository'] = path + os.chdir(path)   path = paths.find_root(os.getcwd())   if path:   try: @@ -195,9 +199,6 @@
  pass   else:   lui = ui - if options['repository']: - path = lui.expandpath(options['repository']) - cmdoptions['repository'] = path     _loaded = {}   extensions.loadall(ui)