How to synchronize my mercurial projects before suspending and just after resuming
<p>I've tried by including the corresponding <code>hg</code> commands in the <code>/etc/pm/sleep.d/00_update</code> file, in the cases of <code>hibernate|suspend)</code> and <code>thaw|resume)</code>, but there seems to be problems, as the wifi connection shuts down before the commit is done (and, yes, <code>00_uptdate</code> was the first to be executed). Is there any other strategy to keep projects synchronized by just sending the system to sleep before leaving the workplace? I mean automatically, of course a script with the <code>hg push</code> and <code>pm-suspend</code> would make it.</p>